mirror of
https://git.koehn.com/docker/postgres-wal-g.git
synced 2026-11-27 09:43:20 -06:00
Compare commits
16
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d644e427bf | ||
|
|
2843231ba3 | ||
|
|
d38cf5c191 | ||
|
|
aab6a0cbc3 | ||
|
|
3f5f137aac | ||
|
|
f1b9fe6c8f | ||
|
|
63777d0241 | ||
|
|
ffe01b37ae | ||
|
|
6ccf13f61e | ||
|
|
06627b7c94 | ||
|
|
47a9a80143 | ||
|
|
59d62b6071 | ||
|
|
63e54dbefb | ||
|
|
353e9afdca | ||
|
|
25c88d9aee | ||
|
|
9210fd7661 |
No files matched your search
@@ -16,6 +16,17 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "::set-output name=postgres::${TAG:0:4}"
|
echo "::set-output name=postgres::${TAG:0:4}"
|
||||||
echo "::set-output name=walg::${TAG:5:6}"
|
echo "::set-output name=walg::${TAG:5:6}"
|
||||||
|
|
||||||
|
- name: Setup deployment key
|
||||||
|
env:
|
||||||
|
KEY: ${{ secrets.SSH_KEY }}
|
||||||
|
KNOWN_HOSTS: ${{ secrets.KNOWN_HOSTS }}
|
||||||
|
run: |
|
||||||
|
mkdir "$HOME/.ssh"
|
||||||
|
chmod 700 "$HOME/.ssh"
|
||||||
|
echo "$KEY" > "$HOME/.ssh/id_rsa"
|
||||||
|
chmod 600 "$HOME/.ssh/id_rsa"
|
||||||
|
ssh -o StrictHostKeyChecking=no -l root -- k3s-sd-03.koehn.com docker version
|
||||||
|
|
||||||
- name: Install Docker
|
- name: Install Docker
|
||||||
run: curl -fsSL https://get.docker.com | sh
|
run: curl -fsSL https://get.docker.com | sh
|
||||||
@@ -25,6 +36,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
with:
|
||||||
|
append: |
|
||||||
|
- endpoint: ssh://root@k3s-sd-03.koehn.com
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
@@ -35,10 +49,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
|
needs: versions
|
||||||
with:
|
with:
|
||||||
build-args: |
|
build-args: |
|
||||||
BASE="${{ steps.versions.outputs.postgres }}"
|
BASE=${{ steps.versions.outputs.postgres }}
|
||||||
WAL_G="${{ steps.versions.outpus.walg }}"
|
WAL_G=${{ steps.versions.outputs.walg }}
|
||||||
push: true
|
push: true
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
tags: git.koehn.com/docker/postgres-wal-g:${{ steps.versions.outputs.postgres }}-${{ steps.versions.outputs.walg }}
|
tags: git.koehn.com/docker/postgres-wal-g:${{ steps.versions.outputs.postgres }}-${{ steps.versions.outputs.walg }}
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
pipeline:
|
|
||||||
build-image:
|
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
|
||||||
when:
|
|
||||||
event: tag
|
|
||||||
secrets: [ docker_username, docker_password ]
|
|
||||||
settings:
|
|
||||||
repo: koehn/postgres-wal-g
|
|
||||||
tag: ${CI_COMMIT_TAG}
|
|
||||||
platforms: linux/amd64
|
|
||||||
mtu: 1300
|
|
||||||
build_args:
|
|
||||||
- BASE=${CI_COMMIT_TAG:0:4}
|
|
||||||
- WALG_RELEASE=${CI_COMMIT_TAG:5:6}
|
|
||||||
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
when:
|
|
||||||
event: cron
|
|
||||||
cron: "check-base-image"
|
|
||||||
|
|
||||||
pipeline:
|
|
||||||
check-if-base-image-changed:
|
|
||||||
image: git.koehn.com/docker/postgres-wal-g-build-checker:v0.0.1
|
|
||||||
settings:
|
|
||||||
base: postgres:15.2
|
|
||||||
image: koehn/postgres-wal-g
|
|
||||||
platforms: linux/amd64
|
|
||||||
failure: ignore
|
|
||||||
|
|
||||||
build:
|
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
|
||||||
group: rebuild
|
|
||||||
secrets: [docker_username, docker_password]
|
|
||||||
settings:
|
|
||||||
repo: koehn/postgres-wal-g
|
|
||||||
platforms: linux/amd64
|
|
||||||
when:
|
|
||||||
status: [ failure ]
|
|
||||||
|
|
||||||
notify:
|
|
||||||
image: plugins/matrix
|
|
||||||
secrets: [matrix_password, matrix_accesstoken]
|
|
||||||
group: rebuild
|
|
||||||
settings:
|
|
||||||
homeserver: https://koehn.com
|
|
||||||
roomid: "!SxdrFDKduRfxciYhEc:koehn.com"
|
|
||||||
username: woodpecker
|
|
||||||
password:
|
|
||||||
from_secret: matrix_password
|
|
||||||
accesstoken:
|
|
||||||
from_secret: matrix_accesstoken
|
|
||||||
template: "The postgres-wal-g image is out of date and needs to be rebuilt."
|
|
||||||
when:
|
|
||||||
status: [ failure ]
|
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
[](https://woodpecker.koehn.com/docker/postgres-wal-g)
|
|
||||||
|
|
||||||
# Postgres WAL-G
|
# Postgres WAL-G
|
||||||
|
|
||||||
This image extends the stock [Postgres Image](https://hub.docker.com/_/postgres/)
|
This image extends the stock [Postgres Image](https://hub.docker.com/_/postgres/)
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ IMAGE_NAME=koehn/postgres-wal-g
|
|||||||
build_image() {
|
build_image() {
|
||||||
BASE=$1
|
BASE=$1
|
||||||
IMAGE=$IMAGE_NAME:$BASE-$WALG_VERSION
|
IMAGE=$IMAGE_NAME:$BASE-$WALG_VERSION
|
||||||
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
|
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 --builder multiarch
|
||||||
}
|
}
|
||||||
|
|
||||||
build_image "$PG_VERSION" "$WALG_VERSION"
|
build_image "$PG_VERSION" "$WALG_VERSION"
|
||||||
|
|||||||
Reference in new issue
Block a user