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
33env :
44 REGISTRY : ghcr.io
55 IMAGE_NAME : ${{ github.repository }}
6+ IMAGE_NAME_UI : ${{ github.repository }}-ui
67
78on :
89 push :
3031 id : image
3132 run : |
3233 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
3441
3542 - name : Set up QEMU
3643 uses : docker/setup-qemu-action@v2
5461 build-args : BASE_IMAGE=alpine:3.15
5562 tags : " ${{ steps.image.outputs.NAME }}"
5663 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}
23LABEL maintainer=
"Team ACID @ Zalando <[email protected] >" 34
45EXPOSE 8081
You can’t perform that action at this time.
0 commit comments