File tree Expand file tree Collapse file tree 4 files changed +184
-0
lines changed Expand file tree Collapse file tree 4 files changed +184
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ name : " Build CKAN image and push it to registry"
3
+
4
+ on :
5
+ push :
6
+ branches :
7
+ - ' development'
8
+ - ' dev-update-docker'
9
+ paths :
10
+ - ' .github/workflows/build-push-image-ckan.yml'
11
+ - ' docker/images/ckan/**'
12
+
13
+ jobs :
14
+ push-image :
15
+ if : github.repository == 'utrechtuniversity/epos-msl'
16
+ runs-on : ubuntu-22.04
17
+ permissions :
18
+ contents : read
19
+ packages : write
20
+ steps :
21
+ - name : Extract branch name
22
+ shell : bash
23
+ run : echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
24
+ id : extract_branch
25
+
26
+ - name : Check out EPOS-MSL catalog repository
27
+ uses : actions/checkout@v4
28
+ with :
29
+ path : yoda
30
+ repository : UtrechtUniversity/epos-msl
31
+ ref : ${{ steps.extract_branch.outputs.branch }}
32
+
33
+ - name : Authenticate to the container registry
34
+ uses : docker/login-action@v3
35
+ with :
36
+ registry : ghcr.io
37
+ username : ${{ github.actor }}
38
+ password : ${{ secrets.GITHUB_TOKEN }}
39
+
40
+ - name : Build and push Docker image
41
+ uses : docker/build-push-action@v6
42
+ with :
43
+ context : epos-msl/docker/images/ckan
44
+ file : epos-msl/docker/images/ckan/Dockerfile
45
+ push : true
46
+ tags : latest
Original file line number Diff line number Diff line change
1
+ ---
2
+ name : " Build MSL-API image and push it to registry"
3
+
4
+ on :
5
+ push :
6
+ branches :
7
+ - ' development'
8
+ - ' dev-update-docker'
9
+ paths :
10
+ - ' .github/workflows/build-push-image-mslapi.yml'
11
+ - ' docker/images/msl-api/**'
12
+
13
+ jobs :
14
+ push-image :
15
+ if : github.repository == 'utrechtuniversity/epos-msl'
16
+ runs-on : ubuntu-22.04
17
+ permissions :
18
+ contents : read
19
+ packages : write
20
+ steps :
21
+ - name : Extract branch name
22
+ shell : bash
23
+ run : echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
24
+ id : extract_branch
25
+
26
+ - name : Check out EPOS-MSL catalog repository
27
+ uses : actions/checkout@v4
28
+ with :
29
+ path : yoda
30
+ repository : UtrechtUniversity/epos-msl
31
+ ref : ${{ steps.extract_branch.outputs.branch }}
32
+
33
+ - name : Authenticate to the container registry
34
+ uses : docker/login-action@v3
35
+ with :
36
+ registry : ghcr.io
37
+ username : ${{ github.actor }}
38
+ password : ${{ secrets.GITHUB_TOKEN }}
39
+
40
+ - name : Build and push Docker image
41
+ uses : docker/build-push-action@v6
42
+ with :
43
+ context : epos-msl/docker/images/msl-api
44
+ file : epos-msl/docker/images/msl-api/Dockerfile
45
+ push : true
46
+ tags : latest
Original file line number Diff line number Diff line change
1
+ ---
2
+ name : " Build Nginx image and push it to registry"
3
+
4
+ on :
5
+ push :
6
+ branches :
7
+ - ' development'
8
+ - ' dev-update-docker'
9
+ paths :
10
+ - ' .github/workflows/build-push-image-nginx.yml'
11
+ - ' docker/images/nginx/**'
12
+
13
+ jobs :
14
+ push-image :
15
+ if : github.repository == 'utrechtuniversity/epos-msl'
16
+ runs-on : ubuntu-22.04
17
+ permissions :
18
+ contents : read
19
+ packages : write
20
+ steps :
21
+ - name : Extract branch name
22
+ shell : bash
23
+ run : echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
24
+ id : extract_branch
25
+
26
+ - name : Check out EPOS-MSL catalog repository
27
+ uses : actions/checkout@v4
28
+ with :
29
+ path : yoda
30
+ repository : UtrechtUniversity/epos-msl
31
+ ref : ${{ steps.extract_branch.outputs.branch }}
32
+
33
+ - name : Authenticate to the container registry
34
+ uses : docker/login-action@v3
35
+ with :
36
+ registry : ghcr.io
37
+ username : ${{ github.actor }}
38
+ password : ${{ secrets.GITHUB_TOKEN }}
39
+
40
+ - name : Build and push Docker image
41
+ uses : docker/build-push-action@v6
42
+ with :
43
+ context : epos-msl/docker/images/nginx
44
+ file : epos-msl/docker/images/nginx/Dockerfile
45
+ push : true
46
+ tags : latest
Original file line number Diff line number Diff line change
1
+ ---
2
+ name : " Build Solr image and push it to registry"
3
+
4
+ on :
5
+ push :
6
+ branches :
7
+ - ' development'
8
+ - ' dev-update-docker'
9
+ paths :
10
+ - ' .github/workflows/build-push-image-solr.yml'
11
+ - ' docker/images/solr/**'
12
+
13
+ jobs :
14
+ push-image :
15
+ if : github.repository == 'utrechtuniversity/epos-msl'
16
+ runs-on : ubuntu-22.04
17
+ permissions :
18
+ contents : read
19
+ packages : write
20
+ steps :
21
+ - name : Extract branch name
22
+ shell : bash
23
+ run : echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
24
+ id : extract_branch
25
+
26
+ - name : Check out EPOS-MSL catalog repository
27
+ uses : actions/checkout@v4
28
+ with :
29
+ path : yoda
30
+ repository : UtrechtUniversity/epos-msl
31
+ ref : ${{ steps.extract_branch.outputs.branch }}
32
+
33
+ - name : Authenticate to the container registry
34
+ uses : docker/login-action@v3
35
+ with :
36
+ registry : ghcr.io
37
+ username : ${{ github.actor }}
38
+ password : ${{ secrets.GITHUB_TOKEN }}
39
+
40
+ - name : Build and push Docker image
41
+ uses : docker/build-push-action@v6
42
+ with :
43
+ context : epos-msl/docker/images/solr
44
+ file : epos-msl/docker/images/solr/Dockerfile
45
+ push : true
46
+ tags : latest
You can’t perform that action at this time.
0 commit comments