hometown-mastodon/.woodpecker.yml

15 lines
772 B
YAML
Raw Normal View History

2023-04-05 14:58:49 +01:00
pipeline:
build:
secrets: [user, pass]
image: docker.io/docker:23-cli
commands:
2023-04-05 19:23:40 +01:00
- apk add curl git
2023-04-05 19:15:24 +01:00
- docker login -u $USER -p $PASS dev.cat-enby.club
2023-04-05 19:39:00 +01:00
- HOMETOWN_VERSION=$(curl -sX GET "https://api.github.com/repos/hometown-fork/hometown/releases/latest" | awk '/tag_name/{print $4;exit}' FS='[""]') && docker buildx build --build-arg HOMETOWN_VERSION=$HOMETOWN_VERSION -t dev.cat.enby.club/nikurasu/hometown:latest -t dev.cat-enby.club/nikurasu/hometown:${HOMETOWN_VERSION//+} -f ./Dockerfile .
2023-04-05 14:58:49 +01:00
- docker push dev.cat-enby.club/nikurasu/hometown:$HOMETOWN_VERSION
2023-04-05 19:17:42 +01:00
volumes:
- /var/run/docker.sock:/var/run/docker.sock
2023-04-05 19:07:54 +01:00
# - docker push dev.cat-enby.club/nikurasu/hometown:latest
#when:
#branch: main