Merge pull request 'Fix up the CI pipeline to build on tags' (#2) from setup-tagging-woodpecker into master
Reviewed-on: #2
This commit is contained in:
commit
d47ea18103
15
.woodpecker.yaml
Normal file
15
.woodpecker.yaml
Normal 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
|
@ -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
|
Loading…
Reference in New Issue
Block a user