Skip to content

Commit f36aa16

Browse files
committed
Add workflows for handling image building
1 parent 17f2088 commit f36aa16

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Trigger GitLab build job
2+
on:
3+
push:
4+
branches:
5+
- dev
6+
env:
7+
GITLAB_PIPELINE_TRIGGER_TOKEN: ${{ secrets.GITLAB_PIPELINE_TRIGGER_TOKEN }}
8+
jobs:
9+
trigger_build_job:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: send triggering request
13+
run: |
14+
curl -X POST \
15+
--fail \
16+
-F token=$GITLAB_PIPELINE_TRIGGER_TOKEN \
17+
-F "ref=main" \
18+
https://gitlab.kuleuven.be/api/v4/projects/17581/trigger/pipeline
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Trigger GitLab build job
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- dev
7+
tags:
8+
- 'v[0-9]+.[0-9]+.[0-9]+'
9+
env:
10+
GITLAB_PIPELINE_TRIGGER_TOKEN: ${{ secrets.GITLAB_PIPELINE_TRIGGER_TOKEN }}
11+
jobs:
12+
13+
trigger_build_job:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: send triggering request
17+
run: |
18+
curl -X POST \
19+
--fail \
20+
-F token=$GITLAB_PIPELINE_TRIGGER_TOKEN \
21+
-F "ref=main" \
22+
-F "variables[RELEASE_VERSION]=${{github.ref_name}}" \
23+
https://gitlab.kuleuven.be/api/v4/projects/17581/trigger/pipeline
24+
25+
package_release:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v4
30+
- name: Create Release
31+
id: create_release
32+
uses: actions/create-release@v1
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
with:
36+
tag_name: ${{ github.ref }}
37+
release_name: ${{ github.ref }}
38+
draft: true
39+
prerelease: false

0 commit comments

Comments
 (0)