glitchier-soc/.woodpecker.yml

21 lines
613 B
YAML
Raw Normal View History

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