mastodon/.woodpecker.yml

20 lines
576 B
YAML
Raw Normal View History

2022-11-12 10:50:24 +00:00
pipeline:
build:
image: docker
volumes:
- /var/run/docker.sock:/var/run/docker.sock
2022-11-12 10:50:24 +00:00
commands:
- docker image build -f Dockerfile . -t gitea.treehouse.systems/treehouse/mastodon:latest
push:
image: docker
volumes:
- /var/run/docker.sock:/var/run/docker.sock
2022-11-12 10:50:24 +00:00
commands:
- echo $REGISTRY_SECRET | docker login -u ariadne --password-stdin gitea.treehouse.systems
2022-11-12 10:50:24 +00:00
- docker image push --all-tags gitea.treehouse.systems/treehouse/mastodon
when:
event: [push, tag]
branch: main
2022-11-12 14:08:48 +00:00
secrets: [REGISTRY_SECRET]