Skip to content

Commit

Permalink
Enable Github actions to trigger internal Gitlab CI (#490)
Browse files Browse the repository at this point in the history
* update actions and gitlab CI

* update project path

* use trigger API to build internal docker instead

* test trigger on branch push

* fix github action

* test why trigger workflow not starting

* fix branch name

* remove step in trigger job

* remove test branch

* move mirror to a separate workflow, update pipeline running rules

* Revert "move mirror to a separate workflow, update pipeline running rules"

This reverts commit 92b4b04.

---------

Co-authored-by: Matic Lubej <[email protected]>
  • Loading branch information
mlubej and Matic Lubej authored Nov 7, 2023
1 parent 7fbdcd7 commit fb56c6f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ jobs:
with:
args: "https://git.sinergise.com/eo/code/sentinelhub-py-dev/"
env:
FOLLOW_TAGS: "true"
GITLAB_HOSTNAME: "git.sinergise.com"
GITLAB_USERNAME: "github-action"
GITLAB_PASSWORD: ${{ secrets.GITLAB_PASSWORD }}
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/ci_trigger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: trigger

on:
release:
types:
- published

jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: Trigger API
run: >
curl -X POST --fail \
-F token=${{ secrets.GITLAB_PIPELINE_TRIGGER_TOKEN }} \
-F ref=main \
-F variables[CUSTOM_RUN_TAG]=auto \
-F variables[LAYER_NAME]=dotai-eo \
https://git.sinergise.com/api/v4/projects/1031/trigger/pipeline
4 changes: 2 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ update_base_image:
run_sh_integration_tests:
stage: test
image: "$BASE_IMAGE"
dependencies: [ ]
needs: [ ]
dependencies: []
needs: []
rules:
- when: always
if: '$UPDATE_BASE_IMAGE != "true"'
Expand Down

0 comments on commit fb56c6f

Please sign in to comment.