Compare commits
5 Commits
8d9417225c
...
996accda36
Author | SHA1 | Date | |
---|---|---|---|
996accda36 | |||
|
368b20acc9 | ||
|
e92b4ad5c1 | ||
|
015371848a | ||
|
3c262dc3e3 |
@ -1,12 +1,16 @@
|
|||||||
|
image: docker:latest
|
||||||
|
|
||||||
build:
|
build:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
only:
|
only:
|
||||||
- main
|
- /^v.*$/
|
||||||
|
except:
|
||||||
|
- branches
|
||||||
services:
|
services:
|
||||||
- docker:dind
|
- docker:dind
|
||||||
before_script:
|
before_script:
|
||||||
- echo "$CI_REGISTRY_PASSWORD" | docker login $CI_REGISTRY --username $CI_REGISTRY_USER --password-stdin
|
- echo "$CI_REGISTRY_PASSWORD" | docker login $CI_REGISTRY --username $CI_REGISTRY_USER --password-stdin
|
||||||
script:
|
script:
|
||||||
- docker build --no-cache -t "$CI_REGISTRY_IMAGE:latest" . -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG"
|
- docker build --no-cache -t "$CI_REGISTRY_IMAGE:latest" -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG" .
|
||||||
- docker push "$CI_REGISTRY_IMAGE:latest"
|
- docker push "$CI_REGISTRY_IMAGE:latest"
|
||||||
- docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG"
|
- docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
ARG BUILDX_VERSION=0.7.1
|
ARG BUILDX_VERSION=0.9.1
|
||||||
ARG DOCKER_VERSION=latest
|
ARG DOCKER_VERSION=latest
|
||||||
|
|
||||||
FROM alpine AS fetcher
|
FROM alpine AS fetcher
|
||||||
|
Loading…
Reference in New Issue
Block a user