Add binary build

This commit is contained in:
video-prize-ranch
2022-05-06 19:28:21 -04:00
parent fa5751032b
commit d86c00e76e
+19
View File
@@ -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