From 52b026ce1f245af9712304f48f9b24dcaac7c782 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Thu, 22 Aug 2024 21:24:39 -0500 Subject: [PATCH] ci(refactor): remove gitlab-ci --- .gitlab-ci.yml | 52 -------------------------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 8bdac6c..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,52 +0,0 @@ -stages: - - setup - - build - - upload - - release - -variables: - PACKAGE_VERSION: "$CI_COMMIT_TAG" - PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/resume" - RESUME_FILE: "resume.pdf" - GIT_DEPTH: 1 - -build: - stage: build - image: nixos/nix:latest - script: | - nix --extra-experimental-features "flakes nix-command" build - mv "./result/${RESUME_FILE}" $(pwd) - artifacts: - expire_in: 1 week - paths: - - "${RESUME_FILE}" - -upload: - stage: upload - needs: - - build - rules: - - if: $CI_COMMIT_TAG - image: curlimages/curl:latest - script: - - 'curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file "${RESUME_FILE}" ${PACKAGE_REGISTRY_URL}/${CI_COMMIT_TAG}/${RESUME_FILE}' - -tag-release: - stage: release - needs: - - upload - image: registry.gitlab.com/gitlab-org/release-cli:latest - script: - - echo "Releasing Resume @ ${CI_COMMIT_TAG}" - rules: - - if: $CI_COMMIT_TAG && $CI_COMMIT_TAG != "latest" - release: - tag_name: "${CI_COMMIT_TAG}" - description: "${CI_COMMIT_TAG}" - ref: "${CI_COMMIT_SHA}" - assets: - links: - - name: "${RESUME_FILE}" - url: "${PACKAGE_REGISTRY_URL}/${CI_COMMIT_TAG}/${RESUME_FILE}" - filepath: /resume.pdf - link_type: other