Rename the Woodpecker file back; Make pipeline only run on tag; Use tag as Docker label

This commit is contained in:
Raoul Snyman 2024-04-24 22:20:54 -07:00
parent 864b3f8fd5
commit 44786b861d
2 changed files with 15 additions and 12 deletions

15
.woodpecker.yaml Normal file
View File

@ -0,0 +1,15 @@
steps:
build:
image: docker
commands:
- "docker login git.snyman.info -u $DOCKER_USERNAME -p $DOCKER_TOKEN"
- "docker build --build-arg FLARUM_VERSION=$CI_COMMIT_TAG -t git.snyman.info/raoul/flarum:$CI_COMMIT_TAG -t git.snyman.info/raoul/flarum:latest ."
- "docker push git.snyman.info/raoul/flarum:$CI_COMMIT_TAG"
- "docker push git.snyman.info/raoul/flarum:latest"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
secrets:
- docker_username
- docker_token
when:
- event: tag

View File

@ -1,12 +0,0 @@
steps:
build:
image: docker
commands:
- "docker login git.snyman.info -u $DOCKER_USERNAME -p $DOCKER_TOKEN"
- "docker build -t git.snyman.info/raoul/flarum ."
- "docker push git.snyman.info/raoul/flarum"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
secrets:
- docker_username
- docker_token