From 5818e5d4ab624f0d410092354d93952fcf2bee72 Mon Sep 17 00:00:00 2001 From: Neshura Date: Tue, 12 Dec 2023 07:03:37 +0000 Subject: [PATCH] Delete .gitlab-ci.yml --- .gitlab-ci.yml | 71 -------------------------------------------------- 1 file changed, 71 deletions(-) delete mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 199f4bc..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,71 +0,0 @@ -image: 3.10.8-slim-buster - -variables: - PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/linux/$CI_COMMIT_TAG/" - -.deploy: - rules: - # Regex magic copied from Neshura/page-test, only deploys on x.y.z or higher (x.y) Tags - - if: $CI_COMMIT_TAG =~ /^((([\d])+\.){1,2}[\d]+)\s*$/ && $CI_COMMIT_TAG - -stages: - - build - - upload - - release - -## Docker steps - -build: - image: rust:bullseye - stage: build - - variables: - IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_BRANCH - CACHING: - - script: - - echo "Compiling the code..." - - cargo build -r - - echo "Compile complete." - - after_script: - - echo JOB_ID=$CI_JOB_ID >> job.env - - mkdir ./artifacts - - cp /builds/Neshura/cloudflare-dns-updater/target/release/cloudflare-dns-updater ./artifacts/ - - artifacts: - paths: - - ./artifacts/ - reports: - dotenv: job.env - - rules: - - !reference [.deploy, rules] - -upload: - needs: - - job: build - artifacts: true - image: curlimages/curl:latest - stage: upload - script: - - | - curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file artifacts/cloudflare-dns-updater "${PACKAGE_REGISTRY_URL}/cloudflare-dns-updater" - rules: - - !reference [.deploy, rules] - -Tag Release: - stage: release - image: registry.gitlab.com/gitlab-org/release-cli:latest - rules: - - !reference [.deploy, rules] - script: - - echo "running Release Job, attaching Artifact from Job $JOB_ID" - release: - tag_name: '$CI_COMMIT_TAG' - description: '$CI_COMMIT_TAG' - assets: - links: - - name: "cloudflare-dns-updater" - url: "${PACKAGE_REGISTRY_URL}/cloudflare-dns-updater" - \ No newline at end of file