Skip to content

Commit

Permalink
Load arm64 image.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjsr committed Jul 11, 2024
1 parent 7f42d00 commit 6a98f38
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,18 +110,30 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Download artifact
- name: Download amd64 artifact
uses: actions/download-artifact@v4
with:
name: amd64_node_patched_npm_${{ env.NODE_VERSION }}-alpine${{ env.ALPINE_VERSION }}-npm${{ env.NPM_VERSION }}
path: /tmp/amd64/node_patched_npm

- name: Download arm64 artifact
uses: actions/download-artifact@v4
with:
name: arm64_node_patched_npm_${{ env.NODE_VERSION }}-alpine${{ env.ALPINE_VERSION }}-npm${{ env.NPM_VERSION }}
path: /tmp/arm64/node_patched_npm

- name: Load tagged amd64 image.
id: load-amd64
continue-on-error: true
run: |
docker load --input /tmp/amd64/node_patched_npm/${{ env.NODE_VERSION }}-alpine${{ env.ALPINE_VERSION }}-npm${{ env.NPM_VERSION }}.tar
- name: Load tagged arm64 image.
id: load-arm4
continue-on-error: true
run: |
docker load --input /tmp/arm64/node_patched_npm/${{ env.NODE_VERSION }}-alpine${{ env.ALPINE_VERSION }}-npm${{ env.NPM_VERSION }}.tar
- name: Tag the latest image
if: steps.branch-names.outputs.current_branch == 'develop/actions' && steps.load-amd64.outputs.exit-code == 0
run: |
Expand Down

0 comments on commit 6a98f38

Please sign in to comment.