mirror of
https://git.koehn.com/docker/postgres-wal-g.git
synced 2026-11-27 01:43:20 -06:00
Compare commits
7
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
25c88d9aee | ||
|
|
9210fd7661 | ||
|
|
61ff6dd3ea | ||
|
|
2509a90e5e | ||
|
|
e21c44f8cc | ||
|
|
97d2c06256 | ||
|
|
9330274a80 |
No files matched your search
@@ -0,0 +1,45 @@
|
||||
name: ci
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Get Postgres and WAL-G versions
|
||||
env:
|
||||
TAG: ${{ gitea.ref_name }}
|
||||
id: versions
|
||||
run: |
|
||||
echo "::set-output name=postgres::${TAG:0:4}"
|
||||
echo "::set-output name=walg::${TAG:5:6}"
|
||||
|
||||
- name: Install Docker
|
||||
run: curl -fsSL https://get.docker.com | sh
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.koehn.com
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v5
|
||||
needs: versions
|
||||
with:
|
||||
build-args: |
|
||||
BASE=${{ steps.versions.outputs.postgres }}
|
||||
WAL_G=${{ steps.versions.outputs.walg }}
|
||||
push: true
|
||||
platforms: linux/amd64,linux/arm64
|
||||
tags: git.koehn.com/docker/postgres-wal-g:${{ steps.versions.outputs.postgres }}-${{ steps.versions.outputs.walg }}
|
||||
@@ -12,7 +12,7 @@ IMAGE_NAME=koehn/postgres-wal-g
|
||||
build_image() {
|
||||
BASE=$1
|
||||
IMAGE=$IMAGE_NAME:$BASE-$WALG_VERSION
|
||||
docker buildx build --builder k3s-sd -t $IMAGE --push . --build-arg BASE=$PG_VERSION --build-arg WALG_RELEASE=$WALG_VERSION --ulimit memlock=16384:16384
|
||||
docker buildx build -t $IMAGE --push . --build-arg BASE=$PG_VERSION --build-arg WALG_RELEASE=$WALG_VERSION --ulimit memlock=16384:16384 --platform linux/amd64,linux/arm64
|
||||
}
|
||||
|
||||
build_image "$PG_VERSION" "$WALG_VERSION"
|
||||
|
||||
Reference in new issue
Block a user