set pipeline condition

main
Mi Klo 2023-07-18 09:40:42 +00:00
rodzic fcd71455cb
commit bbecadb807
1 zmienionych plików z 5 dodań i 7 usunięć

Wyświetl plik

@ -6,10 +6,7 @@ pipeline:
- echo ${CI_REPO_NAME}
- echo ${CI_REPO_OWNER}
- echo ${CI_COMMIT_SHA}
- echo ${CI_COMMIT_SHA:0:10}
when:
event: tag
branch: main
- echo ${CI_COMMIT_SHA:0:10}
build-push:
image: plugins/docker
@ -25,6 +22,7 @@ pipeline:
from_secret: docker_username
password:
from_secret: docker_password
when:
event: tag
branch: main
when:
event: tag
branch: main