Skip to content

Commit 98b17cd

Browse files
Add workflow to push image
This is so far some copy&paste work from OpenProject. Might need further cleanup of duplication.
1 parent f0f27a3 commit 98b17cd

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Release image
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: read # to fetch code (actions/checkout)
10+
11+
env:
12+
REGISTRY_IMAGE: openproject/keycloak-openproject-id
13+
KEYCLOAK_VERSION: 26.3.3
14+
15+
jobs:
16+
build:
17+
if: github.repository == 'opf/openproject-id'
18+
needs:
19+
- setup
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v5
24+
- name: Set up QEMU
25+
uses: docker/setup-qemu-action@v3
26+
- name: Set up Docker Buildx
27+
id: buildx
28+
uses: docker/setup-buildx-action@v3
29+
- name: Login to Docker Hub
30+
uses: docker/login-action@v3
31+
with:
32+
username: ${{ secrets.DOCKER_USERNAME }}
33+
password: ${{ secrets.DOCKER_PASSWORD }}
34+
- name: Build & push image
35+
id: build
36+
uses: docker/build-push-action@v6
37+
with:
38+
context: image
39+
file: image/Containerfile
40+
platforms: linux/amd64,linux/arm64
41+
build-args: |
42+
BUILDKIT_PROGRESS=plain
43+
pupush: true
44+
tags: "${{ env.REGISTRY_IMAGE }}:${{ env.KEYCLOAK_VERSION }}"

0 commit comments

Comments
 (0)