Update
This commit is contained in:
parent
d2fa7b6563
commit
08ead1373a
1 changed files with 11 additions and 23 deletions
|
@ -1,26 +1,3 @@
|
|||
# stages:
|
||||
# - build
|
||||
# - test
|
||||
# - deploy
|
||||
|
||||
# services:
|
||||
# - docker:stable-dind
|
||||
|
||||
# build-latest:
|
||||
# image: docker:stable
|
||||
# stage: build
|
||||
# only:
|
||||
# - main
|
||||
# script:
|
||||
# - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
|
||||
|
||||
# - docker pull $CI_REGISTRY_IMAGE:latest || true
|
||||
# - docker build --cache-from $CI_REGISTRY_IMAGE:latest -t $CI_REGISTRY_IMAGE .
|
||||
|
||||
# - docker tag $CI_REGISTRY_IMAGE:latest $CI_REGISTRY_IMAGE:latest
|
||||
|
||||
# - docker push $CI_REGISTRY_IMAGE:latest
|
||||
|
||||
image: docker:stable
|
||||
|
||||
stages:
|
||||
|
@ -58,6 +35,17 @@ Push latest:
|
|||
- 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
|
||||
# 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
|
||||
|
|
Loading…
Reference in a new issue