File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ name: Publish multiarch postgres-operator image on ghcr.io
3
3
env :
4
4
REGISTRY : ghcr.io
5
5
IMAGE_NAME : ${{ github.repository }}
6
+ IMAGE_NAME_UI : ${{ github.repository }}-ui
6
7
7
8
on :
8
9
push :
30
31
id : image
31
32
run : |
32
33
IMAGE="${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${GITHUB_REF/refs\/tags\//}"
33
- echo "NAME=$IMAGE" >> $GITHUB_OUTPUT
34
+ echo "NAME=${IMAGE,,}" >> $GITHUB_OUTPUT
35
+
36
+ - name : Define image name
37
+ id : image_ui
38
+ run : |
39
+ IMAGE="${{ env.REGISTRY }}/${{ env.IMAGE_NAME_UI }}:${GITHUB_REF/refs\/tags\//}"
40
+ echo "NAME=${IMAGE,,}" >> $GITHUB_OUTPUT
34
41
35
42
- name : Set up QEMU
36
43
uses : docker/setup-qemu-action@v2
54
61
build-args : BASE_IMAGE=alpine:3.15
55
62
tags : " ${{ steps.image.outputs.NAME }}"
56
63
platforms : linux/amd64,linux/arm64
64
+
65
+ - name : Build and push multiarch image to ghcr for UI
66
+ uses : docker/build-push-action@v3
67
+ with :
68
+ context : ${{ github.workspace }}/ui
69
+ file : ${{ github.workspace }}/ui/Dockerfile
70
+ push : true
71
+ build-args : BASE_IMAGE=alpine:3.15
72
+ tags : " ${{ steps.image_ui.outputs.NAME }}"
73
+ platforms : linux/amd64,linux/arm64
74
+
Original file line number Diff line number Diff line change 1
- FROM registry.opensource.zalan.do/library/alpine-3.15:latest
1
+ ARG BASE_IMAGE=registry.opensource.zalan.do/library/alpine-3.15:latest
2
+ FROM ${BASE_IMAGE}
2
3
LABEL maintainer=
"Team ACID @ Zalando <[email protected] >"
3
4
4
5
EXPOSE 8081
You can’t perform that action at this time.
0 commit comments