Fix CI, add rules to only run on installer branch
This commit is contained in:
parent
efa2f8e3c9
commit
4550f1a7cd
@ -8,6 +8,8 @@ variables:
|
||||
build_glibc:
|
||||
stage: build
|
||||
image: rust:bullseye
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == "installer"
|
||||
script:
|
||||
- cargo build --release
|
||||
- cp target/release/dotfiles_installer ./installer-amd64-glibc
|
||||
@ -18,8 +20,10 @@ build_glibc:
|
||||
build_muslc:
|
||||
stage: build
|
||||
image: rust:alpine
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == "installer"
|
||||
script:
|
||||
- apk add pkgconf musl-dev
|
||||
- apk add pkgconf musl-dev openssl-dev
|
||||
- cargo build --release
|
||||
- cp target/release/dotfiles_installer ./installer-amd64-muslc
|
||||
artifacts:
|
||||
@ -30,6 +34,8 @@ build_muslc:
|
||||
upload_assets:
|
||||
stage: release
|
||||
image: curlimages/curl:latest
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == "installer"
|
||||
needs:
|
||||
- job: build_glibc
|
||||
artifacts: true
|
||||
@ -42,6 +48,8 @@ upload_assets:
|
||||
create_release:
|
||||
stage: release
|
||||
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == "installer"
|
||||
needs:
|
||||
- upload_assets
|
||||
script:
|
||||
|
Loading…
Reference in New Issue
Block a user