Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #294 from tcnt/tcnt-add-arm64-to-dockerbuild
Browse files Browse the repository at this point in the history
Add ARM64 to Docker build
  • Loading branch information
planetf1 authored Nov 29, 2021
2 parents 2534e6c + 548c8cf commit 9ff23f8
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/node-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ on:
pull_request:
branches: [main,release-*]

# Run client/server in parallel.
# Code checkout is small so low overhead,
# Run client/server in parallel.
# Code checkout is small so low overhead,
# npm build is slow, so benefits from parallelism
jobs:

Expand All @@ -19,10 +19,10 @@ jobs:
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Use Node.js
- name: Use Node.js
uses: actions/setup-node@v2.2.0
with:
node-version: "14"
node-version: "14"
- name: Install dependencies for client
working-directory: ./cra-client
run: npm install
Expand All @@ -47,7 +47,7 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
Expand All @@ -63,22 +63,24 @@ jobs:
- name: Build and push (not main merge)
if: github.ref != 'refs/heads/main'
id: docker_build_release
uses: docker/build-push-action@v2
uses: docker/build-push-action@v2
with:
push: ${{ github.event_name == 'push' && github.repository == 'odpi/egeria-react-ui' }}
push: ${{ github.event_name == 'push' && github.repository == 'odpi/egeria-react-ui' }}
tags: odpi/egeria-react-ui:${{ steps.package-version.outputs.current-version}}, quay.io/odpi/egeria-react-ui:${{ steps.package-version.outputs.current-version}}
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
# For main code stream
- name: Build and push (main merge)
if: github.ref == 'refs/heads/main'
id: docker_build_main
uses: docker/build-push-action@v2
with:
push: ${{ github.event_name == 'push' && github.repository == 'odpi/egeria-react-ui' }}
push: ${{ github.event_name == 'push' && github.repository == 'odpi/egeria-react-ui' }}
tags: odpi/egeria-react-ui:${{ steps.package-version.outputs.current-version}}, odpi/egeria-react-ui:latest, quay.io/odpi/egeria-react-ui:${{ steps.package-version.outputs.current-version}}, quay.io/odpi/egeria-react-ui:latest
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
- name: Image digest (release)
if: github.ref != 'refs/heads/main'
run: echo ${{ steps.docker_build_release.outputs.digest }}
Expand All @@ -87,7 +89,7 @@ jobs:
run: echo ${{ steps.docker_build_main.outputs.digest }}
- name: Create Archive
run: tar -zcf /tmp/egeria-react-ui.tar.gz .
- name: Upload
- name: Upload
uses: actions/upload-artifact@v2
with:
name: React UI {{ steps.package-version.outputs.current-version}}
Expand Down

0 comments on commit 9ff23f8

Please sign in to comment.