This commit is contained in:
parent
5b0f728fce
commit
952b16dbb1
2 changed files with 39 additions and 0 deletions
26
.woodpecker/build.yml
Normal file
26
.woodpecker/build.yml
Normal file
|
@ -0,0 +1,26 @@
|
|||
when:
|
||||
path:
|
||||
exclude: [ '*.md', 'docs/**' ]
|
||||
|
||||
steps:
|
||||
build:
|
||||
image: rust:1-alpine
|
||||
environment:
|
||||
HOSTNAME: 'https://sleutel.boerlage.me'
|
||||
RUSTC_WRAPPER: '/usr/bin/sccache'
|
||||
CARGO_INCREMENTAL: '0'
|
||||
commands:
|
||||
- apk add sccache clang build-base protoc
|
||||
- cargo build --release
|
||||
containerize:
|
||||
image: docker:24-dind
|
||||
when:
|
||||
event: push
|
||||
branch: main
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue