only push images from master

Patrick Cleavelin 2023-07-31 15:32:00 -05:00
parent 96361abf53
commit c505143b2f
1 changed files with 3 additions and 2 deletions

View File

@ -9,11 +9,12 @@ steps:
publish-image:
when:
event: tag
- event: tag
branch: master
image: docker
secrets: [ forgejo_token ]
commands:
- docker login -u ${CI_REPO_OWNER} --password $FORGEJO_TOKEN git.spacegirl.nl
- docker login -u ${CI_REPO_OWNER} --password $${FORGEJO_TOKEN} git.spacegirl.nl
- docker image load --input memejoin-rs.tar.gz
- docker image tag memejoin-rs:${CI_COMMIT_TAG} git.spacegirl.nl/${CI_REPO}:${CI_COMMIT_TAG}
- docker image push git.spacegirl.nl/${CI_REPO}:${CI_COMMIT_TAG}