Compare commits

...
5 changed files with 46 additions and 34 deletions

No files matched your search

-29
View File
@@ -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
+5 -2
View File
@@ -1,12 +1,15 @@
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=15.2
- WALG_RELEASE=v2.0.1
- BASE=${CI_COMMIT_TAG:0:4}
- WALG_RELEASE=${CI_COMMIT_TAG:5:6}
+38
View File
@@ -0,0 +1,38 @@
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 -2
View File
@@ -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 -1
View File
@@ -31,7 +31,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