static-hoster/.woodpecker.yml

22 lines
668 B
YAML
Raw Normal View History

2023-03-17 11:18:10 +01:00
workspace:
path: static-hoster
base: /build
2023-03-17 12:09:44 +01:00
2023-03-17 11:18:10 +01:00
pipeline:
build:
image: docker:23-cli
2023-03-17 11:30:35 +01:00
privileged: true
2023-03-17 11:18:10 +01:00
commands:
2023-03-17 12:23:08 +01:00
- docker buildx build --no-cache -t dev.cat-enby.club/nikurasu/static-hoster:latest -t dev.cat-enby.club/nikurasu/static-hoster:v$CI_COMMIT_TAG -f dev/docker/images/production/Dockerfile .
2023-03-17 12:54:43 +01:00
- docker login -u $USER -p $PASSWORD dev.cat-enby.club
2023-03-17 12:44:07 +01:00
- docker push dev.cat-enby.club/nikurasu/static-hoster:latest
2023-03-17 12:57:21 +01:00
- docker push dev.cat-enby.club/nikurasu/static-hoster:v$CI_COMMIT_TAG
2023-03-17 12:13:03 +01:00
volumes:
- /var/run/docker.sock:/var/run/docker.sock
2023-03-17 12:44:07 +01:00
when:
event: tag
2023-03-17 12:53:07 +01:00
secrets: [ user, password ]
2023-03-17 11:18:10 +01:00
branches: main