library/.woodpecker.yml

24 lines
739 B
YAML
Raw Normal View History

2024-02-25 01:39:13 +00:00
steps:
2022-04-03 19:33:23 +00:00
test:
2024-08-13 21:01:35 +00:00
image: golang:1.23
2022-04-03 19:33:23 +00:00
commands:
- go test ./...
2022-04-03 00:20:34 +00:00
build:
image: docker
commands:
- apk add curl
2025-01-05 19:08:51 +00:00
- docker login -u docker -p $DOCKER_PASSWORD registry.yetaga.in
2022-04-03 19:07:38 +00:00
- docker build -t registry.yetaga.in/library:latest .
- docker push registry.yetaga.in/library:latest
2024-09-23 14:06:38 +00:00
- 'curl http://100.113.98.36:4000/api/fetch -H "Authorization: Bearer $COMPOSE_TOKEN"'
- 'curl http://100.113.98.36:4000/api/update -H "Authorization: Bearer $COMPOSE_TOKEN"'
2025-01-05 19:08:51 +00:00
environment:
DOCKER_PASSWORD:
from_secret: docker_password
COMPOSE_TOKEN:
from_secret: compose_token
2022-04-03 19:33:23 +00:00
when:
branch: "master"
2022-10-31 00:30:10 +00:00
volumes:
- /var/run/docker.sock:/var/run/docker.sock