-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use trigger API to build internal docker instead
- Loading branch information
Matic Lubej
committed
Nov 7, 2023
1 parent
a654318
commit 520116f
Showing
3 changed files
with
29 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,19 @@ | ||
name: mirror_and_trigger | ||
name: trigger | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- "master" | ||
- "develop" | ||
workflow_call: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
mirror-to-gitlab: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Mirror + trigger CI | ||
uses: SvanBoxel/gitlab-mirror-and-ci-action@master | ||
with: | ||
args: "https://git.sinergise.com/eo/code/eo-grow" | ||
env: | ||
FOLLOW_TAGS: "true" | ||
GITLAB_HOSTNAME: "git.sinergise.com" | ||
GITLAB_USERNAME: "github-action" | ||
GITLAB_PASSWORD: ${{ secrets.GITLAB_PASSWORD }} | ||
GITLAB_PROJECT_ID: "878" | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
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 |
This file was deleted.
Oops, something went wrong.