mirror of
https://git.koehn.com/docker/postgres-wal-g.git
synced 2026-11-27 09:43:20 -06:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b89fdb75cb |
No files matched your search
@@ -0,0 +1,29 @@
|
|||||||
|
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
|
||||||
|
|
||||||
+3
-3
@@ -3,13 +3,13 @@ pipeline:
|
|||||||
image: woodpeckerci/plugin-docker-buildx
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
|
branch: main
|
||||||
secrets: [ docker_username, docker_password ]
|
secrets: [ docker_username, docker_password ]
|
||||||
settings:
|
settings:
|
||||||
repo: koehn/postgres-wal-g
|
repo: koehn/postgres-wal-g
|
||||||
tag: ${CI_COMMIT_TAG}
|
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
mtu: 1300
|
mtu: 1300
|
||||||
build_args:
|
build_args:
|
||||||
- BASE=${CI_COMMIT_TAG:0:4}
|
- BASE=${CI_COMMIT_TAG:0:3}
|
||||||
- WALG_RELEASE=${CI_COMMIT_TAG:5:6}
|
- WALG_RELEASE=${CI_COMMIT_TAG:4:10}
|
||||||
|
|
||||||
@@ -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
-2
@@ -1,8 +1,8 @@
|
|||||||
ARG BASE=latest
|
ARG BASE
|
||||||
|
|
||||||
FROM golang:1 as build
|
FROM golang:1 as build
|
||||||
|
|
||||||
ARG WALG_RELEASE=master
|
ARG WALG_RELEASE=v1.1
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -qqy --no-install-recommends --no-install-suggests cmake liblzo2-dev libsodium23 libsodium-dev && \
|
RUN apt-get update && apt-get install -qqy --no-install-recommends --no-install-suggests cmake liblzo2-dev libsodium23 libsodium-dev && \
|
||||||
cd /go/src/ && \
|
cd /go/src/ && \
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ To run a full backup, simply run `/wal-g/backup.sh`.
|
|||||||
## Continuous Backups
|
## Continuous Backups
|
||||||
These will happen automatically once you've started Postgres with your edited
|
These will happen automatically once you've started Postgres with your edited
|
||||||
`postgresql.conf` file (see
|
`postgresql.conf` file (see
|
||||||
[Configuration](#configuration), above).
|
[Configuration](https://gitlab.koehn.com/docker/postgres-wal-g#configuration), above).
|
||||||
|
|
||||||
## Recovery
|
## Recovery
|
||||||
Testing recovery is simple: run a new Docker container with the correct
|
Testing recovery is simple: run a new Docker container with the correct
|
||||||
|
|||||||
Reference in new issue
Block a user