mirror of
https://codeberg.org/librarian/stream-proxy
synced 2024-12-06 19:26:34 +01:00
Add binary build
This commit is contained in:
@@ -1,6 +1,25 @@
|
||||
variables:
|
||||
DOCKER_HOST: tcp://docker:2375
|
||||
|
||||
bin:
|
||||
stage: build
|
||||
needs: []
|
||||
image: rust:alpine
|
||||
cache:
|
||||
- key:
|
||||
files:
|
||||
- Cargo.toml
|
||||
- Cargo.lock
|
||||
paths:
|
||||
- vendor/
|
||||
script:
|
||||
- mkdir ~/.cargo && mv config/cargo.toml ~/.cargo/config.toml
|
||||
- cargo vendor
|
||||
- cargo build --release
|
||||
artifacts:
|
||||
paths:
|
||||
- target/release/stream-proxy
|
||||
|
||||
build:
|
||||
image: docker:20
|
||||
stage: deploy
|
||||
|
||||
Reference in New Issue
Block a user