Compare commits

..
5 changed files with 19 additions and 58 deletions

No files matched your search

+18 -2
View File
@@ -17,6 +17,18 @@ jobs:
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 }}
run: |
apt-get install -y openssh-client
mkdir "$HOME/.ssh"
chmod 700 "$HOME/.ssh"
echo "$KEY" > "$HOME/.ssh/id_rsa"
chmod 600 "$HOME/.ssh/id_rsa"
echo "k3s-sd-03.koehn.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBxtIAg5NYQJ3QLvGSDAYglixflcxOBlLyEOwwKh45Pw" > "$HOME/.ssh/known_hosts"
ssh -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 +37,10 @@ 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: |
- name: k3s-sd-03
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
@@ -38,8 +54,8 @@ jobs:
needs: versions 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 }}
-15
View File
@@ -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}
-38
View File
@@ -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 ]
-2
View File
@@ -1,5 +1,3 @@
[![status-badge](https://woodpecker.koehn.com/api/badges/docker/postgres-wal-g/status.svg)](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/)
+1 -1
View File
@@ -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"