Cache didn't work, also switched version to long commit sha

This commit is contained in:
Mutzi 2023-01-25 16:38:29 +01:00
parent 6953d6075c
commit ad24333d6b

View File

@ -10,14 +10,10 @@ build:
rules: rules:
- if: $CI_COMMIT_BRANCH == "installer" - if: $CI_COMMIT_BRANCH == "installer"
script: script:
- export CARGO_HOME="${PWD}/.cargo"
- apk add pkgconf musl-dev curl - apk add pkgconf musl-dev curl
- RUSTFLAGS='-C target-feature=+crt-static -C link-self-contained=yes -C link-arg=-s' cargo build --release --target x86_64-unknown-linux-musl - RUSTFLAGS='-C target-feature=+crt-static -C link-self-contained=yes -C link-arg=-s' cargo build --release --target x86_64-unknown-linux-musl
- cp target/x86_64-unknown-linux-musl/release/dotfiles_installer ./installer-amd64 - cp target/x86_64-unknown-linux-musl/release/dotfiles_installer ./installer-amd64
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file installer-amd64 "${PACKAGE_REGISTRY_URL}/dev-$CI_COMMIT_SHORT_SHA/installer-amd64"' - 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file installer-amd64 "${PACKAGE_REGISTRY_URL}/dev-$CI_COMMIT_SHA/installer-amd64"'
artifacts: artifacts:
paths: paths:
- installer-amd64 - installer-amd64
cache:
paths:
- .cargo/