Skip to content

Commit

Permalink
Update docker workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hmes98318 committed Jan 28, 2024
1 parent 950672e commit 6d36e20
Showing 1 changed file with 40 additions and 36 deletions.
76 changes: 40 additions & 36 deletions .github/workflows/docker-hub-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,39 +38,43 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}


release-arm64:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: |
${{ github.repository }}
# generate Docker tags based on the following events/attributes
tags: |
type=semver,pattern={{version}}
# always generate latest tag on push
flavor: |
latest=true
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Build and push to DockerHub (arm64)
id: docker_build_arm64
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
file: ./Dockerfile_arm64
platforms: linux/arm64
# Using QEMU emulator to build ARM64 leads to FEXBash execution issues.
# Waiting for GitHub to provide ARM64 architecture support for workflows.
# For now, manual build and release of arm64 versions is required.
#
# release-arm64:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout code
# uses: actions/checkout@v4
#
# - name: Login to DockerHub
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_PASSWORD }}
#
# - name: Docker meta
# id: meta
# uses: docker/metadata-action@v3
# with:
# images: |
# ${{ github.repository }}
# # generate Docker tags based on the following events/attributes
# tags: |
# type=semver,pattern={{version}}
# # always generate latest tag on push
# flavor: |
# latest=true
#
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3
#
# - name: Build and push to DockerHub (arm64)
# id: docker_build_arm64
# uses: docker/build-push-action@v5
# with:
# push: true
# tags: ${{ steps.meta.outputs.tags }}
# file: ./Dockerfile_arm64
# platforms: linux/arm64

0 comments on commit 6d36e20

Please sign in to comment.