24 lines
No EOL
615 B
YAML
24 lines
No EOL
615 B
YAML
when:
|
|
path:
|
|
exclude: [ '*.md', 'docs/**' ]
|
|
|
|
steps:
|
|
build:
|
|
image: rust:1-alpine
|
|
environment:
|
|
HOSTNAME: 'https://sleutel.boerlage.me'
|
|
commands:
|
|
- apk add clang build-base protoc
|
|
- cargo build --release
|
|
containerize:
|
|
image: docker:23-dind
|
|
when:
|
|
event: push
|
|
branch: master
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- /home/daan/.docker/config.json:/root/.docker/config.json
|
|
commands:
|
|
- apk add git
|
|
- docker buildx build -t git.boerlage.me/daan/sleutel:latest .
|
|
- docker push git.boerlage.me/daan/sleutel:latest |