EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit afec00aa authored by Josef Prenner's avatar Josef Prenner
Browse files

add rule to not build when tagging

parent be8204aa
No related branches found
Tags 4.0.0-2025-01-31
No related merge requests found
Pipeline #63226 passed
variables:
DOCKER_TLS_CERTDIR: ""
stages:
- build
- tag
......@@ -7,28 +10,25 @@ build:
tags:
- podman
stage: build
variables:
DOCKER_TLS_CERTDIR: ""
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- podman login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
- podman build --tag $CI_REGISTRY_IMAGE:latest .
- podman push $CI_REGISTRY_IMAGE:latest
rules:
- if: $CI_COMMIT_TAG
when: never
- when: always
tag:
image: quay.io/containers/podman:v4.6.2
tags:
- podman
stage: tag
variables:
DOCKER_TLS_CERTDIR: ""
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- podman login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
- podman pull $CI_REGISTRY_IMAGE:latest || true
- podman build --cache-from $CI_REGISTRY_IMAGE:latest --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG .
- podman build --cache-to $CI_REGISTRY_IMAGE --cache-from $CI_REGISTRY_IMAGE --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG .
- podman push $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
only:
- tags
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment