Skip to content

Commit c5af5d5

Browse files
committed
Add postgresql container image for the GH CI
In order to avoid OBS rebuild issues, add an empty shell on top of the postgresql image for GH CI to use.
1 parent 3a8240c commit c5af5d5

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/workflows/build_containers.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,3 +283,34 @@ jobs:
283283
push: true
284284
tags: ${{ steps.meta.outputs.tags }}
285285
labels: ${{ steps.meta.outputs.labels }}
286+
287+
build-and-push-postgresql-image:
288+
runs-on: ubuntu-latest
289+
permissions:
290+
contents: read
291+
packages: write
292+
293+
steps:
294+
- name: Checkout repository
295+
uses: actions/checkout@v4
296+
297+
- name: Log in to the Container registry
298+
uses: docker/login-action@v3
299+
with:
300+
registry: ${{ env.REGISTRY }}
301+
username: ${{ github.actor }}
302+
password: ${{ secrets.GITHUB_TOKEN }}
303+
304+
- name: Extract metadata (tags, labels) for Docker
305+
id: meta
306+
uses: docker/metadata-action@v5
307+
with:
308+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/ci-postgresql
309+
310+
- name: Build and push Docker image
311+
uses: docker/build-push-action@v5
312+
with:
313+
context: ./testsuite/dockerfiles/postgresql/
314+
push: true
315+
tags: ${{ steps.meta.outputs.tags }}
316+
labels: ${{ steps.meta.outputs.labels }}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# SPDX-License-Identifier: MIT
2+
FROM registry.opensuse.org/systemsmanagement/uyuni/master/containers/uyuni/server-postgresql:latest
3+
4+
ENTRYPOINT ["/usr/local/bin/uyuni-entrypoint.sh"]
5+
CMD ["postgres"]

0 commit comments

Comments
 (0)