Skip to content

Commit 5d699d0

Browse files
mlubejMatic Lubej
andauthored
Fix bug in gitlab CI file (#770)
* fix bugs in gitlab CI * enable testing on custom branch * update CI files * mirror tags * clean up for merging --------- Co-authored-by: Matic Lubej <[email protected]>
1 parent 9b8c652 commit 5d699d0

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.github/workflows/ci_trigger.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: build
1+
name: mirror_and_trigger
22

33
on:
44
pull_request:
@@ -9,8 +9,7 @@ on:
99
workflow_call:
1010
release:
1111
types:
12-
- created # draft release
13-
# - published
12+
- published
1413

1514
jobs:
1615
mirror-and-integration-test-on-gitlab:
@@ -23,9 +22,9 @@ jobs:
2322
with:
2423
args: "https://git.sinergise.com/eo/code/eo-learn/"
2524
env:
25+
FOLLOW_TAGS: "true"
2626
GITLAB_HOSTNAME: "git.sinergise.com"
2727
GITLAB_USERNAME: "github-action"
2828
GITLAB_PASSWORD: ${{ secrets.GITLAB_PASSWORD }}
2929
GITLAB_PROJECT_ID: "164"
3030
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31-
GITHUB_REF: $GITHUB_REF

.gitlab-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ build_docker_image:
1919
stage: build
2020
needs: []
2121
rules:
22-
- if: $GITHUB_REF =~ /^refs\/tags\/ # run only on releases
22+
- if: $CI_COMMIT_TAG # run only on releases
2323
when: always
2424
variables:
25-
- CUSTOM_RUN_TAG: auto # this will create images with the latest tag and the version tag
26-
- LAYER_NAME: dotai-eo
25+
CUSTOM_RUN_TAG: auto # this will create images with the latest tag and the version tag
26+
LAYER_NAME: dotai-eo
2727
- when: manual
2828
trigger:
2929
project: teams/eor/dotai/infra

0 commit comments

Comments
 (0)