Skip to content

Commit

Permalink
fix(package): publish multi-arch releases
Browse files Browse the repository at this point in the history
Fixes #387
  • Loading branch information
andrew-codes committed Jun 12, 2024
1 parent a836aba commit aa19ae5
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 22 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,6 @@ jobs:
OWNER: andrew-codes
REPO_NAME: playnite-web
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm/v6
- linux/arm/v7
- linux/arm64
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -98,7 +90,7 @@ jobs:
env:
NODE_ENV: production
DEBUG: 'playnite-web/*'
PLATFORM: ${{ matrix.platform }}
PLATFORM: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64

package:
name: Publish Extension
Expand Down
10 changes: 1 addition & 9 deletions .github/workflows/pull-request-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,6 @@ jobs:
REGISTRY: ghcr.io
OWNER: andrew-codes
REPO_NAME: playnite-web
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm/v6
- linux/arm/v7
- linux/arm64
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -92,7 +84,7 @@ jobs:
env:
NODE_ENV: production
DEBUG: 'playnite-web/*'
PLATFORM: ${{ matrix.platform }}
PLATFORM: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64

unit_tests_windows:
name: Verify PR - Tests (Windows)
Expand Down
2 changes: 1 addition & 1 deletion apps/game-db-updater/scripts/package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async function run() {

for (const tag of tags) {
sh.exec(
`docker build --platform ${PLATFORM} --tag "${REGISTRY}/${OWNER}/${pkg.name}:${tag}" --file Dockerfile .`,
`docker buildx build --platform ${PLATFORM} --tag "${REGISTRY}/${OWNER}/${pkg.name}:${tag}" --file Dockerfile .`,
)
}
}
Expand Down
2 changes: 1 addition & 1 deletion apps/playnite-web/scripts/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async function run() {

for (const tag of tags) {
sh.exec(
`docker build --platform ${PLATFORM} --tag "${REGISTRY}/${OWNER}/${pkg.name}:${tag}" --file Dockerfile .`,
`docker buildx build --platform ${PLATFORM} --tag "${REGISTRY}/${OWNER}/${pkg.name}:${tag}" --file Dockerfile .`,
)
}
}
Expand Down
2 changes: 1 addition & 1 deletion hass-game-db-updater/scripts/package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async function run() {

for (const tag of tags) {
sh.exec(
`docker build --platform ${PLATFORM} --tag "${REGISTRY}/${OWNER}/${pkg.name}:${tag}" --file Dockerfile --build-arg VERSION=${tag} .`,
`docker buildx build --platform ${PLATFORM} --tag "${REGISTRY}/${OWNER}/${pkg.name}:${tag}" --file Dockerfile --build-arg VERSION=${tag} .`,
)
}
}
Expand Down
2 changes: 1 addition & 1 deletion hass-playnite-web/scripts/package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async function run() {

for (const tag of tags) {
sh.exec(
`docker build --platform ${PLATFORM} --tag "${REGISTRY}/${OWNER}/${pkg.name}:${tag}" --file Dockerfile --build-arg VERSION=${tag} .`,
`docker buildx build --platform ${PLATFORM} --tag "${REGISTRY}/${OWNER}/${pkg.name}:${tag}" --file Dockerfile --build-arg VERSION=${tag} .`,
)
}
}
Expand Down

0 comments on commit aa19ae5

Please sign in to comment.