when: path: exclude: [ '*.md', 'docs/**' ] steps: build: image: rust:1-alpine environment: HOSTNAME: 'https://sleutel.boerlage.me' RUSTC_WRAPPER: '/usr/bin/sccache' SCCACHE_BUCKET: 'sccache' SCCACHE_ENDPOINT: '10.1.1.148:9000' SCCACHE_S3_USE_SSL: 'off' CARGO_INCREMENTAL: '0' secrets: [ sccache_aws_access_key_id, sccache_aws_secret_access_key ] commands: - apk add sccache clang build-base protoc - AWS_ACCESS_KEY_ID=$SCCACHE_AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY=$SCCACHE_AWS_SECRET_ACCESS_KEY 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