See last commit

This commit is contained in:
Neshura 2022-12-03 23:02:39 +01:00
parent a4bda63d95
commit 3a8541a8d2
No known key found for this signature in database
GPG key ID: ACDF5B6EBECF6B0A

View file

@ -11,12 +11,7 @@ stages:
variables:
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
IMAGE_LATEST: $CI_REGISTRY_IMAGE:develop
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
variables:
IMAGE_LATEST: $CI_REGISTRY_IMAGE:latest
IMAGE_LATEST: $CI_REGISTRY_IMAGE:develop
.node:
@ -25,6 +20,11 @@ rules:
.docker:
image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/docker:20
rules:
- if: $CI_COMMIT_TAG
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_TAG
variables:
IMAGE_LATEST: $CI_REGISTRY_IMAGE:latest
linter:
@ -49,8 +49,8 @@ build:
expire_in: 30 mins
paths:
- docker.tar
only:
- tags
rules:
- !reference [.docker, rules]
push:
@ -66,5 +66,5 @@ push:
- docker tag $IMAGE_TAG $IMAGE_LATEST
- docker push $IMAGE_TAG
- docker push $IMAGE_LATEST
only:
- tags
rules:
- !reference [.docker, rules]