Skip to content

Commit

Permalink
ci: only run gitlab job on default branch
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli committed Sep 5, 2023
1 parent e354685 commit 160fe87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
image: ubuntu:20.04
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
before_script:
# install ssh agent
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client git -y )'
Expand Down

0 comments on commit 160fe87

Please sign in to comment.