Skip to content

Commit

Permalink
use trigger API to build internal docker instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Matic Lubej committed Nov 7, 2023
1 parent a654318 commit 520116f
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 40 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,20 @@ jobs:
files: coverage.xml
fail_ci_if_error: true
verbose: false

mirror-to-gitlab:
if: github.event_name == 'push'
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 }}
34 changes: 12 additions & 22 deletions .github/workflows/ci_trigger.yml
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
18 changes: 0 additions & 18 deletions .gitlab-ci.yml

This file was deleted.

0 comments on commit 520116f

Please sign in to comment.