Skip to content
Snippets Groups Projects
Verified Commit 13f4c9e7 authored by Rafael Epplée's avatar Rafael Epplée
Browse files

Fix CI build and deploy job rules

parent 53ea8f38
Branches buildbot
No related tags found
No related merge requests found
Pipeline #122782 passed
......@@ -52,8 +52,7 @@ build:
- vm
# For now, we're only publishing builds for the proof-of-concept.
rules:
- if: $CI_COMMIT_BRANCH == "proof-of-concept"
- if: $CI_PIPELINE_SOURCE == "push"
- if: $CI_COMMIT_BRANCH == "proof-of-concept" && $CI_PIPELINE_SOURCE == "push"
script:
- cargo build --release
- podman build --format docker --manifest buildbtw-server --file Containerfile --manifest registry.archlinux.org/archlinux/buildbtw:poc-server-latest target/release
......@@ -64,8 +63,7 @@ deploy:
stage: deploy
# For now, we're only deploying the proof-of-concept.
rules:
- if: $CI_COMMIT_BRANCH == "proof-of-concept"
- if: $CI_PIPELINE_SOURCE == "push"
- if: $CI_COMMIT_BRANCH == "proof-of-concept" && $CI_PIPELINE_SOURCE == "push"
script:
- pacman -Syu --needed --noconfirm openssh
- base64 --decode "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment