Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
0df17b1
SCF-788: Added build & push workflow, on scalefield_v* pattern
adshin21 Apr 1, 2026
78cf6f1
SCF-788: Added pull requests to test the workflow on the pr
adshin21 Apr 1, 2026
50858ff
SCF-788: Removed e2e tests from build and push workflow
adshin21 Apr 2, 2026
e64fe81
SCF-788: Removed slack notifications for now
adshin21 Apr 2, 2026
37361d2
Added sync restore in place, while keeping the secrerts and services …
adshin21 Dec 24, 2025
7ccf94f
Added async restore in place
adshin21 Dec 30, 2025
b8f3596
Refactored restore-in-place async flow, not removing the config map f…
adshin21 Dec 31, 2025
ff42e01
Added configured cleanup function to remove the restored configmaps
adshin21 Jan 8, 2026
bdd69d8
Fixed configmap prefix in the cleanup function, few typos and logs
adshin21 Jan 12, 2026
6cc330b
Added unit tests for postgresql.go for newly added pitr functions
adshin21 Jan 13, 2026
5ef0743
Added documentation for pitr (automated)
adshin21 Jan 8, 2026
157ae84
Fixed unit test 'TestCreate' and added other test
adshin21 Jan 13, 2026
9676a69
Fixed documentation, the time.duration for pitr_backup_retention does…
adshin21 Jan 16, 2026
880f380
SCF-757: Fixed branch name
adshin21 Apr 7, 2026
096bd39
Fix branch name and add workflow dispatch
adshin21 Apr 8, 2026
d15a564
Updated the logical back image path to contain only 3 parts
adshin21 Apr 15, 2026
2680de0
Added base image, similar to operator to support multi-arch
adshin21 Apr 16, 2026
d16504e
Merge pull request #16 from cybertec-postgresql/restore-in-place-with…
adshin21 May 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
119 changes: 119 additions & 0 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
name: Build and Push Docker Images to Harbor

on:
pull_request:
paths-ignore:
- '**.md'
- 'docs/**'
branches:
- 'scalefield_v*'
push:
paths-ignore:
- '**.md'
- 'docs/**'
branches:
- 'scalefield_v*'
workflow_dispatch:
inputs:
image_tags:
description: 'Comma-separated list of tags'
required: true
type: string
push_image:
description: 'Push images to Harbor'
required: false
type: boolean
default: true

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true

jobs:
build-and-push:
name: Build and Push Docker Images to Harbor
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Determine tags
id: tags
run: |
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
echo "tags=${{ inputs.image_tags }}" >> $GITHUB_OUTPUT
else
FULL_SHA="${{ github.sha }}"
SHORT_SHA="${FULL_SHA:0:7}"
BRANCH_NAME="${{ github.ref_name }}"
echo "tags=${BRANCH_NAME},${FULL_SHA},${SHORT_SHA}" >> $GITHUB_OUTPUT
fi

- name: Generate Harbor tags
id: harbor_tags
run: |
{
echo "operator_tags<<EOF"
IFS=',' read -ra TAG_ARRAY <<< "${{ steps.tags.outputs.tags }}"
for tag in "${TAG_ARRAY[@]}"; do
echo "${{ vars.HARBOR_ORG }}/scalefield/postgres-operator:${tag}"
done
echo "EOF"
} >> "$GITHUB_OUTPUT"
{
echo "logical_backup_tags<<EOF"
IFS=',' read -ra TAG_ARRAY <<< "${{ steps.tags.outputs.tags }}"
for tag in "${TAG_ARRAY[@]}"; do
echo "${{ vars.HARBOR_ORG }}/scalefield/postgres-operator/logical-backup:${tag}"
done
echo "EOF"
} >> "$GITHUB_OUTPUT"

- name: Debug tags
run: |
echo "::group::Operator Image Tags"
echo "${{ steps.harbor_tags.outputs.operator_tags }}"
echo "::endgroup::"
echo "::group::Logical Backup Image Tags"
echo "${{ steps.harbor_tags.outputs.logical_backup_tags }}"
echo "::endgroup::"

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/[email protected]

- name: Log in to Harbor
uses: docker/login-action@v4
with:
registry: ${{ vars.HARBOR_ORG }}
username: ${{ vars.HARBOR_USERNAME }}
password: ${{ secrets.HARBOR_PASSWORD }}

- name: Build and push operator image
id: build_operator
uses: docker/build-push-action@v7
continue-on-error: true
with:
context: .
file: docker/Dockerfile
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'workflow_dispatch' || inputs.push_image }}
tags: ${{ steps.harbor_tags.outputs.operator_tags }}
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Build and push logical-backup image
id: build_logical_backup
uses: docker/build-push-action@v7
continue-on-error: true
with:
context: logical-backup
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'workflow_dispatch' || inputs.push_image }}
tags: ${{ steps.harbor_tags.outputs.logical_backup_tags }}
cache-from: type=gha
cache-to: type=gha,mode=max

3 changes: 2 additions & 1 deletion .github/workflows/run_e2e.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: operator-e2e-tests

on:
on:
workflow_call:
pull_request:
push:
branches:
Expand Down
Loading