From af1bd89457d90851bbd64cd41934255515217e2e Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 6 Aug 2021 12:48:09 +0200 Subject: [PATCH] push a dev-wavelink --- .gitlab-ci.yml | 30 ++++-------------------------- 1 file changed, 4 insertions(+), 26 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 35ed9e3..86927d3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -20,46 +20,24 @@ before_script: Build: stage: build script: - - docker pull $CI_REGISTRY_IMAGE:dev || true + - docker pull $CI_REGISTRY_IMAGE:dev-wavelink || true - > docker build --pull --build-arg VCS_REF=$CI_COMMIT_SHA --build-arg VCS_URL=$CI_PROJECT_URL - --cache-from $CI_REGISTRY_IMAGE:dev + --cache-from $CI_REGISTRY_IMAGE:dev-wavelink --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA . - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA -Push latest: +Push dev-wavelink: variables: GIT_STRATEGY: none stage: push only: - - main - script: - - docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA - - docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA $CI_REGISTRY_IMAGE:latest - - docker push $CI_REGISTRY_IMAGE:latest - -Push dev: - variables: - GIT_STRATEGY: none - stage: push - only: - - dev + - dev-wavelink script: - docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA - docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA $CI_REGISTRY_IMAGE:dev - docker push $CI_REGISTRY_IMAGE:dev - -Push tag: - variables: - GIT_STRATEGY: none - stage: push - only: - - tags - script: - - docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA - - docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME - - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME