Skip to content

Commit

Permalink
exclude inso docker from arm build
Browse files Browse the repository at this point in the history
  • Loading branch information
filfreire committed Jan 28, 2025
1 parent cf4d8ed commit 9e38909
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@ jobs:
run: |
echo "INSO_VERSION=$(jq .version ./packages/${{ env.INSO_PACKAGE_NAME }}/package.json -rj)" >> $GITHUB_ENV
- name: Package app (Linux arm64 only)
if: runner.os == 'Linux' && runner.arch == 'arm64'
- name: Package app (Linux ARM64 only)
if: runner.os == 'Linux' && runner.arch == 'ARM64'
shell: bash
run: BUILD_TARGETS='tar.gz' npm run app-package
env:
NODE_OPTIONS: '--max_old_space_size=6144'

- name: Package app (Linux x64 only)
if: runner.os == 'Linux' && runner.arch == 'x64'
- name: Package app (Linux X64 only)
if: runner.os == 'Linux' && runner.arch == 'X64'
shell: bash
run: npm run app-package
env:
Expand Down Expand Up @@ -202,7 +202,7 @@ jobs:
run: npm run artifacts -w insomnia-inso

- name: Create inso Docker Image artifacts
if: runner.os == 'Linux'
if: runner.os == 'Linux' && runner.arch == 'X64'
run: |
DOCKER_BUILDKIT=1 docker build --tag ${{ env.INSO_PACKAGE_NAME }}:temp ./packages/${{ env.INSO_PACKAGE_NAME }}
docker save ${{ env.INSO_PACKAGE_NAME }}:temp -o ./packages/${{ env.INSO_PACKAGE_NAME }}/artifacts/${{ env.INSO_DOCKER_TAR }}
Expand All @@ -211,7 +211,7 @@ jobs:
# Automatically uploads to workflow assets
- name: Scan inso docker artifacts
id: sbom_action
if: runner.os == 'Linux'
if: runner.os == 'Linux' && runner.arch == 'X64'
uses: Kong/public-shared-actions/security-actions/scan-docker-image@28d20a1f492927f35b00b317acd78f669c45f88b # v2.7.3
with:
asset_prefix: image-inso-${{ runner.os }}-${{ runner.arch }}
Expand Down

0 comments on commit 9e38909

Please sign in to comment.