mirror of
https://github.com/pfzetto/rebacs
synced 2024-11-22 11:12:49 +01:00
36 lines
776 B
YAML
36 lines
776 B
YAML
variables:
|
|
DOCKER_TLS_CERTDIR: ""
|
|
DOCKER_HOST: tcp://docker:2375
|
|
|
|
services:
|
|
- name: docker:dind
|
|
entrypoint: ["dockerd-entrypoint.sh", "--tls=false"]
|
|
|
|
stages:
|
|
- build
|
|
- pack
|
|
|
|
cargo-build:
|
|
stage: build
|
|
image: rust:slim-bookworm
|
|
before_script:
|
|
- apt update && apt install protobuf-compiler -y
|
|
- rustup toolchain install nightly
|
|
- rustup default nightly
|
|
script:
|
|
- cargo build --release
|
|
artifacts:
|
|
paths:
|
|
- target/release/rebacs
|
|
|
|
docker:
|
|
stage: pack
|
|
image: docker:latest
|
|
only:
|
|
- master
|
|
script:
|
|
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
|
|
- docker build --network host -t $CI_REGISTRY_IMAGE/master . -f Dockerfile
|
|
- docker push $CI_REGISTRY_IMAGE/master
|
|
dependencies:
|
|
- cargo-build
|