Skip to content

Commit

Permalink
Add rules when to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
steffengraber committed Sep 21, 2023
1 parent 016c438 commit 77fe83e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ci-templates/000_3.6.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
Build_36:
stage: build
needs: ["Build_Base"]
rules:
- when: always
script:
- docker pull nest/nest-simulator:3.6 || true
- docker build
Expand All @@ -19,7 +21,8 @@ Build_36:
Deploy_36:
stage: deploy
needs: ["Build_36"]
when: never
rules:
- when: on_success
script:
- echo -n $DOCKERHUB_REGISTRY_TOKEN | docker login -u $DOCKERHUB_REGISTRY_USER --password-stdin
- docker push nest/nest-simulator:3.6
Expand Down
2 changes: 2 additions & 0 deletions ci-templates/000_dev.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ Build_Dev:
Deploy_Dev:
stage: deploy
needs: ["Build_Dev"]
rules:
when: on_success
script:
- echo -n $DOCKERHUB_REGISTRY_TOKEN | docker login -u $DOCKERHUB_REGISTRY_USER --password-stdin
- docker push nest/nest-simulator:dev
Expand Down

0 comments on commit 77fe83e

Please sign in to comment.