From 565955c298c6eb1fcb88a83f628a245b52dd01b7 Mon Sep 17 00:00:00 2001 From: a-wing <1@233.email> Date: Tue, 21 Mar 2023 15:56:34 +0800 Subject: [PATCH] remove unless docker build --- .gitlab-ci.yml | 92 -------------------------------------------------- 1 file changed, 92 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e337b46..6aebea8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,8 +5,6 @@ stages: - test - broker - simulation - - artifact - - release - publish # - deploy @@ -113,26 +111,6 @@ test-simulation: - ./gosd database seed - make test-simulation -build-binary: - stage: artifact - script: - - make - artifacts: - paths: - - gosd - expire_in: 1 week - -build image: - image: docker:20.10.5 - stage: artifact - services: - - docker:20.10.5-dind - before_script: - - docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY} - script: - - docker build --tag $CONTAINER_CANARY_IMAGE . - - docker push $CONTAINER_CANARY_IMAGE - #build image: # stage: artifact # image: quay.io/buildah/stable @@ -153,76 +131,6 @@ build image: # - buildah images # - buildah push $IMAGE_NAME -image branch: - image: docker:20.10.5 - stage: release - services: - - docker:20.10.5-dind - before_script: - - docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY} - variables: - CONTAINER_IMAGE: ${CI_REGISTRY_IMAGE}/${CI_COMMIT_REF_NAME}:latest - script: - - docker pull $CONTAINER_CANARY_IMAGE - - docker tag $CONTAINER_CANARY_IMAGE $CONTAINER_IMAGE - - docker push $CONTAINER_IMAGE - -image latest: - image: docker:20.10.5 - stage: release - services: - - docker:20.10.5-dind - before_script: - - docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY} - variables: - CONTAINER_IMAGE: ${CI_REGISTRY_IMAGE}/image:latest - script: - - docker pull $CONTAINER_CANARY_IMAGE - - docker tag $CONTAINER_CANARY_IMAGE $CONTAINER_IMAGE - - docker push $CONTAINER_IMAGE - only: - - master - -image release: - image: docker:20.10.5 - stage: release - services: - - docker:20.10.5-dind - before_script: - - docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY} - variables: - CONTAINER_IMAGE: ${CI_REGISTRY_IMAGE}/${CI_COMMIT_TAG}:latest - script: - - docker pull $CONTAINER_CANARY_IMAGE - - docker tag $CONTAINER_CANARY_IMAGE $CONTAINER_IMAGE - - docker push $CONTAINER_IMAGE - only: - - tags - - #publish ghcr: - # image: docker:20.10.5 - # stage: publish - # services: - # - docker:20.10.5-dind - # before_script: - # - docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY} - # - docker login -u ${GHCR_REGISTRY_USER} -p ${GHCR_REGISTRY_PASSWORD} ghcr.io - # variables: - # CONTAINER_RELEASE_IMAGE: ${CI_REGISTRY_IMAGE}/${CI_COMMIT_TAG}:latest - # script: - # - docker pull $CONTAINER_RELEASE_IMAGE - # # hash - # - docker tag $CONTAINER_RELEASE_IMAGE ghcr.io/sb-im/developer/gosd:${CI_COMMIT_SHORT_SHA} - # - docker push ghcr.io/sb-im/developer/gosd:${CI_COMMIT_SHORT_SHA} - # # version lstrip('v') - # - docker tag $CONTAINER_RELEASE_IMAGE ghcr.io/sb-im/developer/gosd:${CI_COMMIT_TAG#v} - # - docker push ghcr.io/sb-im/developer/gosd:${CI_COMMIT_TAG#v} - # # latest - # - docker tag $CONTAINER_RELEASE_IMAGE ghcr.io/sb-im/developer/gosd:latest - # - docker push ghcr.io/sb-im/developer/gosd:latest - # only: - # - tags - publish customregistry: image: docker:20.10.5 stage: publish