Skip to content

Commit

Permalink
containers/pgbackup: Upgrade, standard automation
Browse files Browse the repository at this point in the history
  • Loading branch information
kallisti5 committed Jan 7, 2025
1 parent 1895980 commit 72d7f66
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
16 changes: 9 additions & 7 deletions containers/tools/pgbackup/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
FROM docker.io/alpine:3.15
FROM docker.io/alpine:3.20

MAINTAINER Haiku, Inc <[email protected]>
LABEL org.opencontainers.image.source https://github.com/haiku/infrastructure
LABEL org.opencontainers.image.url https://github.com/haiku/infrastructure/tree/master/containers/tools/pgbackup
LABEL org.opencontainers.image.vendor Haiku, Inc.
LABEL org.opencontainers.image.source="https://github.com/haiku/infrastructure"
LABEL org.opencontainers.image.url="https://github.com/haiku/infrastructure/tree/main/containers/tools/pgbackup"
LABEL org.opencontainers.image.authors="Haiku, Inc."
LABEL org.opencontainers.image.vendor="Haiku, Inc."
LABEL org.opencontainers.image.description="cgit Interface for Haiku"

RUN apk add --update bash rsync gnupg rsync xz tar postgresql14-client jq
RUN apk add --update bash rsync gnupg rsync xz tar postgresql14-client jq \
&& if [ "$(uname -m)" = "x86_64" ]; then wget https://dl.min.io/client/mc/release/linux-amd64/mc -O /usr/local/bin/mc; fi \
&& if [ "$(uname -m)" = "aarch64" ]; then wget https://dl.min.io/client/mc/release/linux-arm64/mc -O /usr/local/bin/mc; fi;

ADD https://dl.minio.io/client/mc/release/linux-amd64/mc /usr/local/bin/mc
ADD pgsync.sh /usr/local/bin/pgsync
RUN chmod 755 /usr/local/bin/mc

Expand Down
6 changes: 2 additions & 4 deletions containers/tools/pgbackup/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
VERSION = 1.0
VERSION = $(shell cat VERSION | grep -Ev "^#" | tail -1)-development
REGISTRY = ghcr.io/haiku
default:
docker build --no-cache --tag ${REGISTRY}/pgbackup:${VERSION} .
push:
docker push ${REGISTRY}/pgbackup:${VERSION}
podman build --no-cache --tag ${REGISTRY}/pgbackup:${VERSION} .
2 changes: 2 additions & 0 deletions containers/tools/pgbackup/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# ONLY UPDATE ONCE READY TO BUILD NEW RELEASE
1.1

0 comments on commit 72d7f66

Please sign in to comment.