static-hoster/.woodpecker.yml

22 lines
668 B
YAML
Raw Permalink Normal View History

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