glitchier-soc/.woodpecker.yml
2022-12-28 22:27:57 +00:00

20 lines
613 B
YAML

pipeline:
build:
image: docker:rc-git
volumes:
- /var/run/docker.sock:/var/run/docker.sock
commands:
- docker version
- docker image build -f Dockerfile . -t gitea.treehouse.systems/treehouse/mastodon:latest
push:
image: docker:rc-git
volumes:
- /var/run/docker.sock:/var/run/docker.sock
commands:
- echo $REGISTRY_SECRET | docker login -u ariadne --password-stdin gitea.treehouse.systems
- docker image push --all-tags gitea.treehouse.systems/treehouse/mastodon
when:
event: [push, tag]
branch: main
secrets: [REGISTRY_SECRET]