Skip to content

Commit

Permalink
Update DSO auto-sync
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudTA committed Dec 4, 2023
1 parent b094800 commit c2c1062
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/sync.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
name: Sync DSO

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

on:
push:
branches: [ "main" ]
Expand All @@ -21,9 +16,9 @@ jobs:
steps:
- name: Curl DSO APi
run: |
curl -X POST --fail \
-F ref=main \
-F token=${{ secrets.DSO_TOKEN }} \
-F "variables[PROJECT_NAME]=${{ vars.DSO_PROJECT_NAME }}" \
-F "variables[GIT_BRANCH_DEPLOY]=${{ github.ref_name }}" \
https://${{ secrets.DSO_GITLAB_HOST }}/api/v4/projects/${{ vars.DSO_MIRROR_ID }}/trigger/pipeline
curl --location --request POST 'https://${{ secrets.DSO_GRAVITEE_HOST }}/gitlab-dso/${{ vars.DSO_MIRROR_ID }}/trigger/pipeline'\
--header 'X-Gravitee-Api-Key: ${{ secrets.GRAVITEE_TOKEN }}'\
--form 'token=${{ secrets.GITLAB_TOKEN }}'\
--form 'ref="main"'\
--form 'variables[PROJECT_NAME]="${{ vars.DSO_PROJECT_NAME }}"'\
--form 'variables[BRANCH_NAME]="${{ github.ref_name }}'

0 comments on commit c2c1062

Please sign in to comment.