Skip to content

Commit

Permalink
Create seperate job for manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
bdhoine committed Dec 11, 2024
1 parent 29c19e4 commit cb67f8f
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ env:

jobs:
build-images:
name: Build images
permissions:
contents: read
packages: write
Expand Down Expand Up @@ -41,7 +42,7 @@ jobs:
uses: docker/setup-buildx-action@v3
with:
platforms: linux/${{ matrix.arch }}
- name: Log in to the Container registry
- name: Log in to the container registry
if: github.ref == 'refs/heads/main'
uses: docker/login-action@v3
with:
Expand Down Expand Up @@ -72,8 +73,25 @@ jobs:
subject-name: ${{ env.registry }}/${{ github.repository }}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true

manifest:
name: Create manifest
if: github.ref == 'refs/heads/main'
permissions:
packages: write
id-token: write
strategy:
matrix:
arch: [ arm64, amd64 ]
runs-on: ubuntu-latest
steps:
- name: Log in to the container registry
uses: docker/login-action@v3
with:
registry: ${{ env.registry }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push manifest to registry
if: github.ref == 'refs/heads/main'
run: |
IMAGE=${{ env.registry }}/${{ github.repository }}:${{ matrix.runmode }}-${{ env.aem_sdk_version }}
docker manifest create \
Expand Down

0 comments on commit cb67f8f

Please sign in to comment.