Skip to content

Commit

Permalink
actions: Build container manifest for singular image tag
Browse files Browse the repository at this point in the history
  • Loading branch information
kallisti5 committed Dec 28, 2024
1 parent ed1b727 commit 158c8d6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/general-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,11 @@ jobs:
ghcr.io/haiku/general-worker:${{ steps.detect-version.outputs.RELEASE_VERSION }}-amd64
ghcr.io/haiku/general-worker:${{ steps.detect-version.outputs.RELEASE_VERSION }}-arm64
platforms: linux/amd64,linux/arm64
- uses: int128/docker-manifest-create-action@v2
with:
tags: ghcr.io/haiku/general-worker:${{ steps.detect-version.outputs.RELEASE_VERSION }}
sources: |
ghcr.io/haiku/general-worker:${{ steps.detect-version.outputs.RELEASE_VERSION }}-amd64
ghcr.io/haiku/general-worker:${{ steps.detect-version.outputs.RELEASE_VERSION }}-arm64
11 changes: 2 additions & 9 deletions containers/general-worker/Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
VERSION = 20241228
VERSION = 19000101
REGISTRY = ghcr.io/haiku
HOST = `uname -m`
default:
podman build --pull --no-cache --tag ${REGISTRY}/general-worker:${VERSION}-${HOST} .
enter:
podman run -it ${REGISTRY}/general-worker:${VERSION} /bin/bash -l
push:
podman push ${REGISTRY}/general-worker:${VERSION}-${HOST}
push-manifest:
# Make sure you have all the intended images built and pushed ;-)
podman manifest create ${REGISTRY}/general-worker:${VERSION} \
--amend ${REGISTRY}/general-worker:${VERSION}-x86_64 \
--amend ${REGISTRY}/general-worker:${VERSION}-aarch64 \
podman run -it ${REGISTRY}/general-worker:${VERSION}-${HOST} /bin/bash -l

0 comments on commit 158c8d6

Please sign in to comment.