Skip to content

Commit

Permalink
build arm64 docker image
Browse files Browse the repository at this point in the history
Signed-off-by: pengzhile <[email protected]>
  • Loading branch information
pengzhile committed Feb 21, 2023
1 parent 1bc7f87 commit c995184
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ permissions:
contents: read

env:
IMAGE_NAME: "pandora"
IMAGE_NAME: pandora
PLATFORMS: linux/386,linux/amd64,linux/arm64

jobs:
get-tags:
Expand Down Expand Up @@ -59,7 +60,7 @@ jobs:
uses: docker/build-push-action@v4
with:
push: true
platforms: linux/386,linux/amd64,linux/arm/v5,linux/arm/v7,linux/arm64/v8
platforms: ${{ env.PLATFORMS }}
tags: |
${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ needs.get-tags.outputs.image_version }}
${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest
Expand Down Expand Up @@ -87,7 +88,7 @@ jobs:
uses: docker/build-push-action@v4
with:
push: true
platforms: linux/386,linux/amd64,linux/arm/v5,linux/arm/v7,linux/arm64/v8
platforms: ${{ env.PLATFORMS }}
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }}:${{ needs.get-tags.outputs.image_version }}
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }}:latest
4 changes: 2 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.7'
python-version: 3.7

- name: Install dependencies
run: |
Expand All @@ -30,7 +30,7 @@ jobs:
run: python -m build

- name: Publish package
uses: pypa/gh-action-pypi-publish@v1.6.4
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.5
0.2.7

0 comments on commit c995184

Please sign in to comment.