add build step for branches
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
0f954d30a9
commit
48c4e817d7
@ -6,6 +6,17 @@
|
|||||||
depth: 15
|
depth: 15
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
test:
|
||||||
|
image: docker
|
||||||
|
commands:
|
||||||
|
- apk add curl
|
||||||
|
- docker build .
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
exclude: ["master", "main"]
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
|
||||||
build:
|
build:
|
||||||
image: docker
|
image: docker
|
||||||
commands:
|
commands:
|
||||||
@ -17,6 +28,7 @@ steps:
|
|||||||
- 'curl http://100.113.98.36:4000/api/update -H "Authorization: Bearer $COMPOSE_TOKEN"'
|
- 'curl http://100.113.98.36:4000/api/update -H "Authorization: Bearer $COMPOSE_TOKEN"'
|
||||||
secrets: [docker_username, docker_password, compose_token]
|
secrets: [docker_username, docker_password, compose_token]
|
||||||
when:
|
when:
|
||||||
branch: "master"
|
branch:
|
||||||
|
include: ["master", "main"]
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
Loading…
Reference in New Issue
Block a user