Skip to content

Commit de6085a

Browse files
committed
feat: push logical-backup only
1 parent 3c145e2 commit de6085a

3 files changed

Lines changed: 50 additions & 47 deletions

File tree

.github/workflows/publish_ghcr_image.yaml

Lines changed: 50 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@ env:
77

88
on:
99
push:
10+
branches:
11+
- 's3_comp'
1012
tags:
1113
- '*'
14+
workflow_dispatch:
1215

1316
jobs:
1417
publish:
@@ -25,26 +28,26 @@ jobs:
2528
with:
2629
go-version: "^1.25.3"
2730

28-
- name: Run unit tests
29-
run: make test
30-
31-
- name: Define image name
32-
id: image
33-
run: |
34-
OPERATOR_IMAGE="${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${GITHUB_REF/refs\/tags\//}"
35-
echo "OPERATOR_IMAGE=$OPERATOR_IMAGE" >> $GITHUB_OUTPUT
36-
37-
- name: Define pooler image name
38-
id: image_pooler
39-
run: |
40-
POOLER_IMAGE="${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/pgbouncer:${GITHUB_REF/refs\/tags\//}"
41-
echo "POOLER_IMAGE=$POOLER_IMAGE" >> $GITHUB_OUTPUT
42-
43-
- name: Define UI image name
44-
id: image_ui
45-
run: |
46-
UI_IMAGE="${{ env.REGISTRY }}/${{ env.IMAGE_NAME_UI }}:${GITHUB_REF/refs\/tags\//}"
47-
echo "UI_IMAGE=$UI_IMAGE" >> $GITHUB_OUTPUT
31+
# - name: Run unit tests
32+
# run: make test
33+
#
34+
# - name: Define image name
35+
# id: image
36+
# run: |
37+
# OPERATOR_IMAGE="${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${GITHUB_REF/refs\/tags\//}"
38+
# echo "OPERATOR_IMAGE=$OPERATOR_IMAGE" >> $GITHUB_OUTPUT
39+
#
40+
# - name: Define pooler image name
41+
# id: image_pooler
42+
# run: |
43+
# POOLER_IMAGE="${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/pgbouncer:${GITHUB_REF/refs\/tags\//}"
44+
# echo "POOLER_IMAGE=$POOLER_IMAGE" >> $GITHUB_OUTPUT
45+
#
46+
# - name: Define UI image name
47+
# id: image_ui
48+
# run: |
49+
# UI_IMAGE="${{ env.REGISTRY }}/${{ env.IMAGE_NAME_UI }}:${GITHUB_REF/refs\/tags\//}"
50+
# echo "UI_IMAGE=$UI_IMAGE" >> $GITHUB_OUTPUT
4851

4952
- name: Define logical backup image name
5053
id: image_lb
@@ -65,33 +68,33 @@ jobs:
6568
username: ${{ github.actor }}
6669
password: ${{ secrets.GITHUB_TOKEN }}
6770

68-
- name: Build and push multiarch operator image to ghcr
69-
uses: docker/build-push-action@v3
70-
with:
71-
context: .
72-
file: docker/Dockerfile
73-
push: true
74-
build-args: BASE_IMAGE=alpine:3
75-
tags: "${{ steps.image.outputs.OPERATOR_IMAGE }}"
76-
platforms: linux/amd64,linux/arm64
77-
78-
- name: Build and push multiarch pooler image to ghcr
79-
uses: docker/build-push-action@v3
80-
with:
81-
context: pooler
82-
push: true
83-
build-args: BASE_IMAGE=alpine:3.22
84-
tags: "${{ steps.image_pooler.outputs.POOLER_IMAGE }}"
85-
platforms: linux/amd64,linux/arm64
86-
87-
- name: Build and push multiarch ui image to ghcr
88-
uses: docker/build-push-action@v3
89-
with:
90-
context: ui
91-
push: true
92-
build-args: BASE_IMAGE=python:3.11-slim
93-
tags: "${{ steps.image_ui.outputs.UI_IMAGE }}"
94-
platforms: linux/amd64,linux/arm64
71+
# - name: Build and push multiarch operator image to ghcr
72+
# uses: docker/build-push-action@v3
73+
# with:
74+
# context: .
75+
# file: docker/Dockerfile
76+
# push: true
77+
# build-args: BASE_IMAGE=alpine:3
78+
# tags: "${{ steps.image.outputs.OPERATOR_IMAGE }}"
79+
# platforms: linux/amd64,linux/arm64
80+
#
81+
# - name: Build and push multiarch pooler image to ghcr
82+
# uses: docker/build-push-action@v3
83+
# with:
84+
# context: pooler
85+
# push: true
86+
# build-args: BASE_IMAGE=alpine:3.22
87+
# tags: "${{ steps.image_pooler.outputs.POOLER_IMAGE }}"
88+
# platforms: linux/amd64,linux/arm64
89+
#
90+
# - name: Build and push multiarch ui image to ghcr
91+
# uses: docker/build-push-action@v3
92+
# with:
93+
# context: ui
94+
# push: true
95+
# build-args: BASE_IMAGE=python:3.11-slim
96+
# tags: "${{ steps.image_ui.outputs.UI_IMAGE }}"
97+
# platforms: linux/amd64,linux/arm64
9598

9699
- name: Build and push multiarch logical-backup image to ghcr
97100
uses: docker/build-push-action@v3

0 commit comments

Comments
 (0)