diff --git a/.woodpecker.yml b/.woodpecker.yml index 4bcb073..8ea6a44 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -6,6 +6,17 @@ depth: 15 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: image: docker commands: @@ -17,6 +28,7 @@ steps: - 'curl http://100.113.98.36:4000/api/update -H "Authorization: Bearer $COMPOSE_TOKEN"' secrets: [docker_username, docker_password, compose_token] when: - branch: "master" + branch: + include: ["master", "main"] volumes: - /var/run/docker.sock:/var/run/docker.sock