Skip to content

Commit

Permalink
Create images for amd64 and arm64 architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
scottfrederick committed Jul 18, 2024
1 parent 8eb279c commit 14151af
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/package-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
- id: checkout
uses: actions/checkout@v4
- id: setup-tools
uses: buildpacks/github-actions/setup-tools@v5.6.0
uses: buildpacks/github-actions/setup-tools@v5.7.3
- id: setup-pack
uses: buildpacks/github-actions/setup-pack@v5.6.0
uses: buildpacks/github-actions/setup-pack@v5.7.3
- id: login-docker
uses: docker/login-action@v1
with:
Expand All @@ -34,7 +34,7 @@ jobs:
REPO="$(echo "$BP_ID" | sed 's/.*\///')"
VERSION="$(cat test-info/buildpack.toml | yj -t | jq -r .buildpack.version)"
PACKAGE="${ORG}/${REPO}"
pack buildpack package ${PACKAGE}:${VERSION} --config package.toml --publish
pack buildpack package ${PACKAGE}:${VERSION} --config package.toml --target "linux/amd64" --target "linux/arm64 --publish
cd ..
shell: bash
- id: package-builder
Expand All @@ -47,6 +47,6 @@ jobs:
TAG="${{ github.ref_name }}"
VERSION="${TAG#v}"
PACKAGE="${ORG}/${REPO}"
pack builder create "${PACKAGE}:${VERSION}" --config builder.toml --publish
pack builder create "${PACKAGE}:${VERSION}" --config builder.toml --target "linux/amd64" --target "linux/arm64 --publish
cd ..
shell: bash

0 comments on commit 14151af

Please sign in to comment.