From c5946b13bb82b89aa266eb42187509fb0217ef0d Mon Sep 17 00:00:00 2001 From: Florian Hoss Date: Thu, 31 Oct 2024 14:23:02 +0100 Subject: [PATCH] Delete .gitlab-ci.yml --- .gitlab-ci.yml | 61 -------------------------------------------------- 1 file changed, 61 deletions(-) delete mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 387dafe..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,61 +0,0 @@ -stages: - - build - - cleanup - - publish - -variables: - LATEST_IMAGE: '$CI_REGISTRY_IMAGE:latest' - PRODUCTION_URL: 'https://home.unjx.de' - -image: docker:${V_DOCKER}-dind - -.auth_gitlab: - before_script: - - echo $CI_REGISTRY_PASSWORD | docker login --username $CI_REGISTRY_USER --password-stdin $CI_REGISTRY - after_script: - - docker logout - -.rules:deploy: - rules: - - if: '$CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+$/' - -build: - rules: !reference [.rules:deploy, rules] - stage: build - variables: - DOCKER_BUILDKIT: 1 - CURRENT_IMAGE: '$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG' - before_script: - - !reference [.auth_gitlab, before_script] - script: - - docker buildx create --use - - > - docker buildx build . - --provenance=false - --platform=linux/amd64,linux/arm64 - --build-arg APP_VERSION=${CI_COMMIT_TAG} - --build-arg V_GOLANG=${V_GOLANG} - --build-arg V_NODE=${V_NODE} - --build-arg V_ALPINE=${V_ALPINE} - --tag ${CURRENT_IMAGE} - --tag ${LATEST_IMAGE} - --push - after_script: - - !reference [.auth_gitlab, after_script] - -cleanup: - rules: !reference [.rules:deploy, rules] - stage: cleanup - script: - - docker system prune -a -f - - docker volume prune -a -f - -publish: - rules: !reference [.rules:deploy, rules] - stage: publish - script: - - mkdir -p ~/.ssh - - cp $SSH_PRIVATE_KEY ~/.ssh/bot - - chmod 600 ~/.ssh/bot - - ssh-keyscan -H $SERVER >> ~/.ssh/known_hosts - - ssh -i ~/.ssh/bot ${SSH_USER}@${SERVER} $SSH_COMMAND