Skip to content

Commit

Permalink
Merge branch 'fix/ci-pipeline-rules' into 'develop'
Browse files Browse the repository at this point in the history
Run GitHub Codespaces prebuild on default branch if previous stages are successful

See merge request monticore/montithings/core!395
  • Loading branch information
kirchhof committed Jun 1, 2024
2 parents 8a4d6b3 + dbb52f1 commit 92f453a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -483,9 +483,13 @@ GitHub Mirror:
Docker GitHub Codespace:
<<: *docker_build_definition
stage: mirror
rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "push"'
when: on_success
script:
- docker build -t montithings/codespace -f .devcontainer/Dockerfile .
- docker push montithings/codespace



##########################################
Expand Down

0 comments on commit 92f453a

Please sign in to comment.