Cache didn't work, also switched version to long commit sha
This commit is contained in:
parent
6953d6075c
commit
ad24333d6b
@ -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/
|
|
||||||
|
Loading…
Reference in New Issue
Block a user