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:
|
build_glibc:
|
||||||
stage: build
|
stage: build
|
||||||
image: rust:bullseye
|
image: rust:bullseye
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_BRANCH == "installer"
|
||||||
script:
|
script:
|
||||||
- cargo build --release
|
- cargo build --release
|
||||||
- cp target/release/dotfiles_installer ./installer-amd64-glibc
|
- cp target/release/dotfiles_installer ./installer-amd64-glibc
|
||||||
@ -18,8 +20,10 @@ build_glibc:
|
|||||||
build_muslc:
|
build_muslc:
|
||||||
stage: build
|
stage: build
|
||||||
image: rust:alpine
|
image: rust:alpine
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_BRANCH == "installer"
|
||||||
script:
|
script:
|
||||||
- apk add pkgconf musl-dev
|
- apk add pkgconf musl-dev openssl-dev
|
||||||
- cargo build --release
|
- cargo build --release
|
||||||
- cp target/release/dotfiles_installer ./installer-amd64-muslc
|
- cp target/release/dotfiles_installer ./installer-amd64-muslc
|
||||||
artifacts:
|
artifacts:
|
||||||
@ -30,6 +34,8 @@ build_muslc:
|
|||||||
upload_assets:
|
upload_assets:
|
||||||
stage: release
|
stage: release
|
||||||
image: curlimages/curl:latest
|
image: curlimages/curl:latest
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_BRANCH == "installer"
|
||||||
needs:
|
needs:
|
||||||
- job: build_glibc
|
- job: build_glibc
|
||||||
artifacts: true
|
artifacts: true
|
||||||
@ -42,6 +48,8 @@ upload_assets:
|
|||||||
create_release:
|
create_release:
|
||||||
stage: release
|
stage: release
|
||||||
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_BRANCH == "installer"
|
||||||
needs:
|
needs:
|
||||||
- upload_assets
|
- upload_assets
|
||||||
script:
|
script:
|
||||||
|
Loading…
Reference in New Issue
Block a user