12 lines
359 B
YAML
12 lines
359 B
YAML
steps:
|
|
build-and-push-docker-image:
|
|
when:
|
|
event: [push, tag]
|
|
image: docker
|
|
secrets: [ forgejo_token ]
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
commands:
|
|
- 'docker build -t git.spacegirl.nl/patrick/$CI_REPO:${CI_COMMIT_TAG} .'
|
|
- 'docker image push git.spacegirl.nl/patrick/${CI_REPO}:${CI_COMMIT_TAG}'
|