From 4550f1a7cd7ad7b508d885f2be0cc9feae1c1312 Mon Sep 17 00:00:00 2001 From: Mutzi Date: Fri, 20 Jan 2023 16:56:42 +0100 Subject: [PATCH] Fix CI, add rules to only run on installer branch --- .gitlab-ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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: