Skip to content

Split up runners

Split up runners #34

Workflow file for this run

name: Create and publish AEM images
on: [ push ]
env:
registry: ghcr.io
image_name: ${{ github.repository }}
aem_sdk_version: 2024.10.18459.20241031T210302Z-241000
jobs:
build-images:
permissions:
contents: read
packages: write
attestations: write
id-token: write
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
runmode: [ author, publish ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Cache SDK
uses: actions/cache@v4
with:
path: aem-sdk-artifacts
key: aem-sdk-${{ env.aem_sdk_version }}.zip
- name: Checkout AEM SDK artifacts repository
uses: actions/checkout@v4
with:
repository: orbinson/aem-sdk-artifacts
lfs: true
token: ${{ secrets.PRIVATE_TOKEN }}
path: aem-sdk-artifacts
- name: Build image
run: |
ARCH=$(arch | sed 's/x86_64/amd64/')
PORT=${{ matrix.runmode == 'author' && '4502' || '4503' }}
TAG=${{ env.registry }}/${{ env.image_name }}:${{ matrix.runmode }}-${{ env.aem_sdk_version }}-${ARCH}
docker build --build-arg TARGETARCH=${ARCH} --build-arg PORT=${PORT} . -t ${TAG}