Skip to content

Commit

Permalink
Update build recipe for Codeberg
Browse files Browse the repository at this point in the history
Update the container build recipes for Codeberg. GHCR and DockerHub are
still supported by the GitHub CI.
  • Loading branch information
grisu48 committed Jun 8, 2024
1 parent 62277da commit 7db751c
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
MANIFEST="pasta-multiarch"
IMAGE="codeberg.org/grisu48/pasta"

default: all
all: pasta pastad
static: pasta-static pastad-static
Expand All @@ -22,9 +25,12 @@ test: pastad pasta
# TODO: This syntax is horrible :-)
bash -c 'cd test && ./test.sh'

container-docker: Containerfile pasta pastad
docker build . -t feldspaten.org/pasta
container:
#podman build . -t codeberg.org/grisu48/pasta

container-podman: Containerfile pasta pastad
podman build . -t feldspaten.org/pasta
buildah manifest create "${MANIFEST}"
buildah build --arch amd64 --tag "${IMAGE}" --manifest "${MANIFEST}" .
buildah build --arch arm64 --tag "${IMAGE}" --manifest "${MANIFEST}" .

container-push:
buildah manifest push --all "${MANIFEST}" "docker://${IMAGE}"

0 comments on commit 7db751c

Please sign in to comment.