2023-04-11 13:10:47 +01:00
|
|
|
workspace:
|
|
|
|
path: static-hoster
|
|
|
|
base: /build
|
|
|
|
|
|
|
|
pipeline:
|
|
|
|
build:
|
|
|
|
image: docker:23-cli
|
|
|
|
privileged: true
|
|
|
|
commands:
|
|
|
|
- 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
|
|
|
|
- docker push dev.cat-enby.club/nikurasu/static-hoster:latest
|
|
|
|
- docker push dev.cat-enby.club/nikurasu/static-hoster:$(date "+%Y-%m-%d")
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
secrets: [ user, password ]
|
|
|
|
|
2023-04-11 13:14:24 +01:00
|
|
|
branches: current
|