mirror of
https://git.koehn.com/docker/postgres-wal-g.git
synced 2026-11-25 17:43:20 -06:00
Compare commits
42
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0283464236 | ||
|
|
599b4a7394 | ||
|
|
181d81d8b6 | ||
|
|
fe1d076b54 | ||
|
|
d644e427bf | ||
|
|
2843231ba3 | ||
|
|
d38cf5c191 | ||
|
|
aab6a0cbc3 | ||
|
|
3f5f137aac | ||
|
|
f1b9fe6c8f | ||
|
|
63777d0241 | ||
|
|
ffe01b37ae | ||
|
|
6ccf13f61e | ||
|
|
06627b7c94 | ||
|
|
47a9a80143 | ||
|
|
59d62b6071 | ||
|
|
63e54dbefb | ||
|
|
353e9afdca | ||
|
|
25c88d9aee | ||
|
|
9210fd7661 | ||
|
|
61ff6dd3ea | ||
|
|
2509a90e5e | ||
|
|
e21c44f8cc | ||
|
|
97d2c06256 | ||
|
|
9330274a80 | ||
|
|
9e3a846dc1 | ||
|
|
ff60201d72 | ||
|
|
17c6ecb0d7 | ||
|
|
f888c65103 | ||
|
|
2dbb67d57d | ||
|
|
4821a6be85 | ||
|
|
b4004f97e1 | ||
|
|
d21915e04f | ||
|
|
b1025bf7be | ||
|
|
f49433d3ee | ||
|
|
53618b8e55 | ||
|
|
179daa3d14 | ||
|
|
7fe34cd27c | ||
|
|
7b1cc24f2e | ||
|
|
66d4b429cf | ||
|
|
8d201da1a2 | ||
|
|
226ba8b2d0 |
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, ssh]
|
||||
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:${{ gitea.ref.name }}
|
||||
@@ -1,29 +0,0 @@
|
||||
stages:
|
||||
- build
|
||||
|
||||
build:
|
||||
stage: build
|
||||
timeout: 3h
|
||||
image:
|
||||
name: moby/buildkit:latest
|
||||
entrypoint: [""]
|
||||
script:
|
||||
- |
|
||||
mkdir /root/.docker
|
||||
cat > /root/.docker/config.json <<EOF
|
||||
{
|
||||
"auths": {
|
||||
"https://index.docker.io/v1/": {
|
||||
"auth":"${DOCKER_AUTH}"
|
||||
},
|
||||
"${CI_REGISTRY}": {
|
||||
"username": "${CI_REGISTRY_USER}",
|
||||
"password": "${CI_REGISTRY_PASSWORD}"
|
||||
}
|
||||
}
|
||||
}
|
||||
EOF
|
||||
- buildctl-daemonless.sh build --frontend=dockerfile.v0 --local context=$CI_PROJECT_DIR --local dockerfile=$CI_PROJECT_DIR --output type=image,name=docker.io/koehn/postgres-wal-g:14.2-$CI_COMMIT_TAG,push=true --opt build-arg:BASE=14.2 --opt build-arg:WALG_RELEASE=$(echo $CI_COMMIT_TAG | awk -F '-' '{print $1}') --opt platform=linux/amd64
|
||||
only:
|
||||
- tags
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
pipeline:
|
||||
build-image:
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
secrets: [ docker_username, docker_password ]
|
||||
settings:
|
||||
repo: koehn/postgres-wal-g
|
||||
platforms: linux/amd64
|
||||
mtu: 1300
|
||||
build_args:
|
||||
- BASE=15.2
|
||||
- WALG_RELEASE=v2.0.1
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
ARG BASE
|
||||
ARG BASE=latest
|
||||
|
||||
FROM golang:1 as build
|
||||
|
||||
ARG WALG_RELEASE=v1.1
|
||||
ARG WALG_RELEASE=master
|
||||
|
||||
RUN apt-get update && apt-get install -qqy --no-install-recommends --no-install-suggests cmake liblzo2-dev libsodium23 libsodium-dev && \
|
||||
cd /go/src/ && \
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
[](https://woodpecker.koehn.com/docker/postgres-wal-g)
|
||||
|
||||
# Postgres WAL-G
|
||||
|
||||
This image extends the stock [Postgres Image](https://hub.docker.com/_/postgres/)
|
||||
@@ -31,7 +29,7 @@ To run a full backup, simply run `/wal-g/backup.sh`.
|
||||
## Continuous Backups
|
||||
These will happen automatically once you've started Postgres with your edited
|
||||
`postgresql.conf` file (see
|
||||
[Configuration](https://gitlab.koehn.com/docker/postgres-wal-g#configuration), above).
|
||||
[Configuration](#configuration), above).
|
||||
|
||||
## Recovery
|
||||
Testing recovery is simple: run a new Docker container with the correct
|
||||
|
||||
@@ -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 --builder multiarch
|
||||
}
|
||||
|
||||
build_image "$PG_VERSION" "$WALG_VERSION"
|
||||
|
||||
Reference in new issue
Block a user