diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3b44862..095de30 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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: