Skip to content

Commit

Permalink
upgrade to support arm64 image
Browse files Browse the repository at this point in the history
  • Loading branch information
containerman17 committed Sep 23, 2024
1 parent c52fd5e commit 3fac46b
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,27 @@ jobs:
name: push docker image to hub
runs-on: ubuntu-latest
steps:
- name: check repository
- name: Checkout
uses: actions/checkout@v4

- name: login to docker registry
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{secrets.DOCKERHUB_USERNAME}}
password: ${{secrets.DOCKERHUB_TOKEN}}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: build and push docker image to registry
uses: docker/build-push-action@v5
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: containerman17/hypersdk-explorer:latest
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit 3fac46b

Please sign in to comment.