2022-11-12 10:50:24 +00:00
|
|
|
pipeline:
|
|
|
|
build:
|
|
|
|
image: docker
|
2022-11-12 10:55:53 +00:00
|
|
|
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
|
2022-11-12 10:55:53 +00:00
|
|
|
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]
|
2022-11-13 03:23:58 +00:00
|
|
|
branch: main
|
2022-11-12 14:08:48 +00:00
|
|
|
secrets: [REGISTRY_SECRET]
|