Compare commits

..
Author SHA1 Message Date
Brad Koehn 599b4a7394 setting up key for remote build 2023-11-09 16:51:32 -06:00
Brad Koehn 181d81d8b6 setting up key for remote build 2023-11-09 16:46:20 -06:00
Brad Koehn fe1d076b54 setting up key for remote build 2023-11-09 16:39:19 -06:00
Brad Koehn d644e427bf setting up key for remote build 2023-11-09 16:30:15 -06:00
Brad Koehn 2843231ba3 setting up key for remote build 2023-11-09 16:27:28 -06:00
Brad Koehn d38cf5c191 setting up key for remote build 2023-11-09 16:23:31 -06:00
Brad Koehn aab6a0cbc3 setting up key for remote build 2023-11-09 16:11:44 -06:00
Brad Koehn 3f5f137aac setting up key for remote build 2023-11-09 15:57:01 -06:00
Brad Koehn f1b9fe6c8f setting up key for remote build 2023-11-09 15:53:26 -06:00
Brad Koehn 63777d0241 setting up key for remote build 2023-11-09 15:32:22 -06:00
Brad Koehn ffe01b37ae setting up key for remote build 2023-11-09 15:27:07 -06:00
Brad Koehn 6ccf13f61e setting up key for remote build 2023-11-09 15:17:02 -06:00
Brad Koehn 06627b7c94 setting up key for remote build 2023-11-09 15:10:24 -06:00
Brad Koehn 47a9a80143 setting up key for remote build 2023-11-09 15:08:02 -06:00
Brad Koehn 59d62b6071 use k3s for amd64 builds 2023-11-09 14:58:37 -06:00
Brad Koehn 63e54dbefb removed woodpecker in favor of Gitea Actions 2023-11-04 11:15:50 -05:00
Brad Koehn 353e9afdca removed woodpecker in favor of Gitea Actions 2023-11-04 11:15:16 -05:00
Brad Koehn 25c88d9aee tweaks 2023-11-04 10:43:03 -05:00
Brad Koehn 9210fd7661 tweaks 2023-11-04 10:40:44 -05:00
Brad Koehn 61ff6dd3ea tweaks 2023-11-04 10:38:50 -05:00
Brad Koehn 2509a90e5e multi-arch 2023-11-04 10:33:08 -05:00
Brad Koehn e21c44f8cc fix build-args 2023-11-04 15:30:17 +00:00
Brad Koehn 97d2c06256 trying gitea actions 2023-11-04 10:27:01 -05:00
Brad Koehn 9330274a80 build locally, for amd/64 2023-07-07 11:32:34 -05:00
Brad Koehn 9e3a846dc1 moved cron back to pipeline 2023-02-28 06:44:10 -06:00
Brad Koehn ff60201d72 move cron and run notify in parallel to build 2023-02-28 06:41:45 -06:00
Brad Koehn 17c6ecb0d7 don't report build failure 2023-02-28 06:35:27 -06:00
Brad Koehn f888c65103 enable cron and only send message as needed 2023-02-27 17:04:32 -06:00
Brad Koehn 2dbb67d57d added matrix stuff to test 2023-02-27 17:02:26 -06:00
Brad Koehn 4821a6be85 versioning the builder 2023-02-27 16:35:31 -06:00
Brad Koehn b4004f97e1 buld tweaks and correct failure detection 2023-02-27 16:26:17 -06:00
Brad Koehn d21915e04f test to rebuild automatically 2023-02-27 16:23:42 -06:00
Brad Koehn b1025bf7be added overnight cron job and latest defaults 2023-02-27 09:37:15 -06:00
Brad Koehn f49433d3ee fixed broken link. 2023-02-26 21:00:52 -06:00
5 changed files with 69 additions and 21 deletions

No files matched your search

+65
View File
@@ -0,0 +1,65 @@
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: Setup deployment key
id: ssh
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"
eval "$(ssh-agent -s)"
ssh-add "$HOME/.ssh/id_rsa"
echo "::set-output name=ssd-path::$HOME/.ssh"
echo "::set-output name=ssh-agent-pid::$SSH_AGENT_PID"
echo "::set-output name=ssh-auth-sock::$SSH_AUTH_SOCK"
ssh -o StrictHostKeyChecking=no -l root -- k3s-sd-03.koehn.com docker version
- 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
with:
append: |
- endpoint: ssh://root@k3s-sd-03.koehn.com
- 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:${{ 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}
+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 -3
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
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
+1 -1
View File
@@ -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"