Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 37 additions & 4 deletions .github/workflows/nightly-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,15 @@ permissions:

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- runner: ubuntu-latest
arch: amd64
- runner: ubuntu-24.04-arm64
arch: arm64
runs-on: ${{ matrix.runner }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -39,13 +47,38 @@ jobs:
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
provenance: false
tags: |
ghcr.io/neonspectra/epcc:nightly
ghcr.io/neonspectra/epcc:sha-${{ steps.version.outputs.sha_short }}
ghcr.io/neonspectra/epcc:nightly-${{ matrix.arch }}
ghcr.io/neonspectra/epcc:sha-${{ steps.version.outputs.sha_short }}-${{ matrix.arch }}
build-args: |
EPCC_DISPLAY_VERSION=${{ github.sha }}
EPCC_DISPLAY_VERSION_NAME=nightly
EPCC_DISPLAY_COMMIT=${{ github.sha }}
EPCC_DISPLAY_RELEASE_DATE=${{ steps.version.outputs.release_date }}

manifest:
runs-on: ubuntu-latest
needs: build
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Create multi-arch tags
run: |
SHA_SHORT="$(echo "$GITHUB_SHA" | cut -c1-7)"
docker buildx imagetools create \
-t ghcr.io/neonspectra/epcc:nightly \
ghcr.io/neonspectra/epcc:nightly-amd64 \
ghcr.io/neonspectra/epcc:nightly-arm64
docker buildx imagetools create \
-t ghcr.io/neonspectra/epcc:sha-${SHA_SHORT} \
ghcr.io/neonspectra/epcc:sha-${SHA_SHORT}-amd64 \
ghcr.io/neonspectra/epcc:sha-${SHA_SHORT}-arm64
42 changes: 38 additions & 4 deletions .github/workflows/release-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,15 @@ permissions:

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- runner: ubuntu-latest
arch: amd64
- runner: ubuntu-24.04-arm64
arch: arm64
runs-on: ${{ matrix.runner }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -52,13 +60,39 @@ jobs:
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
provenance: false
tags: |
ghcr.io/neonspectra/epcc:${{ steps.tags.outputs.pretty_tag }}
ghcr.io/neonspectra/epcc:latest
ghcr.io/neonspectra/epcc:${{ steps.tags.outputs.pretty_tag }}-${{ matrix.arch }}
ghcr.io/neonspectra/epcc:latest-${{ matrix.arch }}
build-args: |
EPCC_DISPLAY_VERSION=${{ steps.tags.outputs.version_number }}
EPCC_DISPLAY_VERSION_NAME=${{ steps.tags.outputs.version_name }}
EPCC_DISPLAY_COMMIT=${{ steps.tags.outputs.commit_sha }}
EPCC_DISPLAY_RELEASE_DATE=${{ steps.tags.outputs.release_date }}

manifest:
runs-on: ubuntu-latest
needs: build
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Create multi-arch tags
run: |
VERSION_NUMBER="${{ inputs.version_number }}"
PRETTY_TAG="v${VERSION_NUMBER}"
docker buildx imagetools create \
-t ghcr.io/neonspectra/epcc:${PRETTY_TAG} \
ghcr.io/neonspectra/epcc:${PRETTY_TAG}-amd64 \
ghcr.io/neonspectra/epcc:${PRETTY_TAG}-arm64
docker buildx imagetools create \
-t ghcr.io/neonspectra/epcc:latest \
ghcr.io/neonspectra/epcc:latest-amd64 \
ghcr.io/neonspectra/epcc:latest-arm64