Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Github actions to trigger internal Gitlab CI #490

Merged
merged 11 commits into from
Nov 7, 2023
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:
image: alpine
script:
- apk add --no-cache curl
- >
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