mastodon/.woodpecker.yml

21 lines
613 B
YAML
Raw Normal View History

2022-11-12 10:50:24 +00:00
pipeline:
build:
2022-12-28 22:27:57 +00:00
image: docker:rc-git
volumes:
- /var/run/docker.sock:/var/run/docker.sock
2022-11-12 10:50:24 +00:00
commands:
2022-12-28 22:27:57 +00:00
- docker version
2022-11-12 10:50:24 +00:00
- docker image build -f Dockerfile . -t gitea.treehouse.systems/treehouse/mastodon:latest
push:
2022-12-28 22:27:57 +00:00
image: docker:rc-git
volumes:
- /var/run/docker.sock:/var/run/docker.sock
2022-11-12 10:50:24 +00:00
commands:
2022-11-12 11:18:48 +00:00
- 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]