hometown-mastodon/.woodpecker.yml

16 lines
649 B
YAML

pipeline:
build:
secrets: [user, pass, GLITCH_VERSION, DOCKER_TAG]
image: docker.io/docker:23-cli
commands:
- apk add curl git
- docker login -u $USER -p $PASS dev.cat-enby.club
- GLITCH_VERSION=$(date "+%Y-%m-%d")
- docker buildx build -t dev.cat-enby.club/nikurasu/mastodon-glitch:latest -t dev.cat-enby.club/nikurasu/mastodon-glitch:$GLITCH_VERSION -f ./Dockerfile .
- docker push dev.cat-enby.club/nikurasu/mastodon-glitch:$GLITCH_VERSION
- docker push dev.cat-enby.club/nikurasu/mastodon-glitch:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
when:
branch: main