cobalt/.woodpecker.yml

20 lines
614 B
YAML
Raw Normal View History

2023-04-11 13:10:47 +01:00
workspace:
path: static-hoster
base: /build
pipeline:
build:
image: docker:23-cli
privileged: true
commands:
2023-04-11 13:19:19 +01:00
- apk add git
2023-04-11 13:10:47 +01:00
- docker buildx build --no-cache -t dev.cat-enby.club/nikurasu/cobalt:latest -t dev.cat-enby.club/nikurasu/cobalt:$(date "+%Y-%m-%d") -f Dockerfile .
- docker login -u $USER -p $PASSWORD dev.cat-enby.club
2023-04-11 13:19:19 +01:00
- docker push dev.cat-enby.club/nikurasu/cobalt:latest
- docker push dev.cat-enby.club/nikurasu/cobalt:$(date "+%Y-%m-%d")
2023-04-11 13:10:47 +01:00
volumes:
- /var/run/docker.sock:/var/run/docker.sock
secrets: [ user, password ]
2023-04-11 13:14:24 +01:00
branches: current