Update
This commit is contained in:
parent
dfbb252d5c
commit
7078e53a52
1 changed files with 25 additions and 2 deletions
|
@ -1,11 +1,34 @@
|
|||
image: docker:latest
|
||||
# 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:
|
||||
- build
|
||||
- push
|
||||
|
||||
before_script:
|
||||
- echo -n $CI_JOB_TOKEN | docker login -u gitlab-ci-token --password-stdin $CI_REGISTRY
|
||||
- echo -n $CI_JOB_TOKEN | docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
|
||||
|
||||
Build:
|
||||
stage: build
|
||||
|
|
Loading…
Reference in a new issue