Skip to content

Commit

Permalink
updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Schmaetz committed Jun 13, 2024
1 parent 3dddfdb commit 470ac7b
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions .github/workflows/build_containers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,44 +35,40 @@ jobs:
- name: Build Postgres $IMAGE_TAG_PREFIX-IMAGE_TAG_SUFFIX
id: build-postgres
run: |
echo "cybertec-pg-container/postgres:$BASEOS-$PGVERSION_FULL-$BUILD $CONTAINER_REPO:postgres-$BASEOS-$PGVERSION_FULL-$BUILD"
echo "cybertec-pg-container/postgres:$BASEOS-$PGVERSION_FULL-$BUILD $CONTAINER_REPO/postgres-$BASEOS-$PGVERSION_FULL-$BUILD"
make postgres
echo "fertig"
docker images
echo *images*
docker tag cybertec-pg-container/postgres:$BASEOS-$PGVERSION_FULL-$BUILD $CONTAINER_REPO:postgres-$BASEOS-$PGVERSION_FULL-$BUILD
echo "tag"
docker save -o postgres.tar $CONTAINER_REPO:postgres-$BASEOS-$PGVERSION_FULL-$BUILD
docker tag cybertec-pg-container/postgres:$BASEOS-$PGVERSION_FULL-$BUILD $CONTAINER_REPO/postgres-$BASEOS-$PGVERSION_FULL-$BUILD
docker save -o postgres.tar $CONTAINER_REPO/postgres-$BASEOS-$PGVERSION_FULL-$BUILD
- name: Build Postgres with GIS $IMAGE_TAG_PREFIX-$POSTGIS_VERSION-$IMAGE_TAG_SUFFIX
id: build-postgres-gis
run: |
echo "cybertec-pg-container/postgres:$BASEOS-$PGVERSION_FULL-$BUILD $CONTAINER_REPO:postgres-$BASEOS-$PGVERSION_FULL-$BUILD"
make postgres-gis
docker images
docker tag cybertec-pg-container/postgres-gis:$BASEOS-$PGVERSION_FULL-$BUILD $CONTAINER_REPO:postgres-gis-$BASEOS-$PGVERSION_FULL-$POSTGIS_VERSION-$BUILD
docker save -o postgres-gis.tar $CONTAINER_REPO:postgres-gis-$BASEOS-$PGVERSION_FULL-$POSTGIS_VERSION-$BUILD
docker tag cybertec-pg-container/postgres-gis:$BASEOS-$PGVERSION_FULL-$BUILD $CONTAINER_REPO/postgres-gis-$BASEOS-$PGVERSION_FULL-$POSTGIS_VERSION-$BUILD
docker save -o postgres-gis.tar $CONTAINER_REPO/postgres-gis-$BASEOS-$PGVERSION_FULL-$POSTGIS_VERSION-$BUILD
- name: Build pgBackRest
id: build-pgbackrest
run: |
make pgbackrest
docker tag cybertec-pg-container/pgbackrest:$BASEOS-$PGVERSION_FULL-$BUILD $CONTAINER_REPO:pgbackrest-$BASEOS-$PGVERSION_FULL-$BUILD
docker save -o pgbackrest.tar $CONTAINER_REPO:pgbackrest-$BASEOS-$PGVERSION_FULL-$BUILD
docker tag cybertec-pg-container/pgbackrest:$BASEOS-$PGVERSION_FULL-$BUILD $CONTAINER_REPO/pgbackrest-$BASEOS-$PGVERSION_FULL-$BUILD
docker save -o pgbackrest.tar $CONTAINER_REPO/pgbackrest-$BASEOS-$PGVERSION_FULL-$BUILD
- name: Build exporter
id: build-exporter
run: |
make exporter
docker tag cybertec-pg-container/exporter:$BASEOS-$PGVERSION_FULL-$BUILD $CONTAINER_REPO:exporter-$BASEOS-$PGVERSION_FULL-$BUILD
docker save -o exporter.tar $CONTAINER_REPO:exporter-$BASEOS-$PGVERSION_FULL-$BUILD
docker images
docker tag cybertec-pg-container/exporter:$BASEOS-$PGVERSION_FULL-$BUILD $CONTAINER_REPO/exporter-$BASEOS-$PGVERSION_FULL-$BUILD
docker save -o exporter.tar $CONTAINER_REPO/exporter-$BASEOS-$PGVERSION_FULL-$BUILD
- name: Build pgBouncer
id: build-pgbouncer
run: |
make pgbouncer
docker tag cybertec-pg-container/pgbouncer:$IMAGE_TAG_PREFIX-$IMAGE_TAG_SUFFIX $CONTAINER_REPO:pgbouncer-$IMAGE_TAG_PREFIX-$IMAGE_TAG_SUFFIX
docker save -o pgbouncer.tar $CONTAINER_REPO:pgbouncer-$IMAGE_TAG_PREFIX-$IMAGE_TAG_SUFFIX
docker images
docker tag cybertec-pg-container/pgbouncer:$IMAGE_TAG_PREFIX-$IMAGE_TAG_SUFFIX $CONTAINER_REPO/pgbouncer-$IMAGE_TAG_PREFIX-$IMAGE_TAG_SUFFIX
docker save -o pgbouncer.tar $CONTAINER_REPO/pgbouncer-$IMAGE_TAG_PREFIX-$IMAGE_TAG_SUFFIX
- name: Upload Containers
uses: actions/upload-artifact@v2
Expand Down

0 comments on commit 470ac7b

Please sign in to comment.