Skip to content

Commit a252922

Browse files
committed
ADD github action to build the simplesamlphp image
The SimpleSAMLphp SP is its own app and needs to have its own image built. This is required for the SimpleSAMLphp extension. I also updated the github action steps to their latest versions.
1 parent 4e6cfcc commit a252922

File tree

1 file changed

+47
-2
lines changed

1 file changed

+47
-2
lines changed

.github/workflows/main.yml

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333

3434
- name: Docker meta
3535
id: meta
36-
uses: docker/metadata-action@v3
36+
uses: docker/metadata-action@v5
3737
with:
3838
images: ubcctlt/mediawiki
3939
# generate Docker tags based on the following events/attributes
@@ -52,11 +52,56 @@ jobs:
5252

5353
- name: Build and push
5454
id: docker_build
55-
uses: docker/build-push-action@v5
55+
uses: docker/build-push-action@v6
5656
with:
5757
push: ${{ github.event_name != 'pull_request' }}
5858
tags: ${{ steps.meta.outputs.tags }}
5959
labels: ${{ steps.meta.outputs.labels }}
6060

6161
- name: Image digest
6262
run: echo ${{ steps.docker_build.outputs.digest }}
63+
buildSimplesamlphp:
64+
# builds and pushes the SimpleSAMLphp SP component to a separate docker hub
65+
# repo
66+
runs-on: ubuntu-latest
67+
steps:
68+
- name: Set up QEMU
69+
uses: docker/setup-qemu-action@v3
70+
71+
- name: Login to Docker Hub
72+
uses: docker/login-action@v3
73+
with:
74+
username: ${{ secrets.DOCKER_HUB_USERNAME }}
75+
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
76+
77+
- name: Docker meta
78+
id: meta
79+
uses: docker/metadata-action@v5
80+
with:
81+
images: ubcctlt/mediawiki-simplesamlphp
82+
# generate Docker tags based on the following events/attributes
83+
tags: |
84+
type=schedule
85+
type=ref,event=branch
86+
type=ref,event=pr
87+
type=ref,event=tag
88+
type=semver,pattern={{version}}
89+
type=semver,pattern={{major}}.{{minor}}
90+
type=semver,pattern={{major}}
91+
type=sha
92+
93+
- name: Set up Docker Buildx
94+
uses: docker/setup-buildx-action@v3
95+
96+
- name: Build and push
97+
id: docker_build
98+
uses: docker/build-push-action@v6
99+
with:
100+
context: "{{defaultContext}}:docker/simplesamlphp/sp/"
101+
file: "{context}/Dockerfile.sp"
102+
push: ${{ github.event_name != 'pull_request' }}
103+
tags: ${{ steps.meta.outputs.tags }}
104+
labels: ${{ steps.meta.outputs.labels }}
105+
106+
- name: Image digest
107+
run: echo ${{ steps.docker_build.outputs.digest }}

0 commit comments

Comments
 (0)