Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
twbworld committed Jul 15, 2023
1 parent 374cd19 commit 5b8b34d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ jobs:
with:
DOCKERHUB_USERNAME: ${{ vars.DOCKERHUB_USERNAME }}
DOCKERHUB_IMAGENAME: ${{ needs.get-image-name.outputs.IMAGE_NAME }}
PLATFORMS: 'linux/amd64,linux/arm64/v8'
8 changes: 7 additions & 1 deletion .github/workflows/push-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ on:
description: 'dockerHub镜像名称'
required: true
type: string
PLATFORMS:
description: '构建镜像平台'
default: 'linux/amd64'
required: false
type: string

jobs:

Expand Down Expand Up @@ -71,6 +76,7 @@ jobs:
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64/v8
platforms: ${{ inputs.PLATFORMS }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 5b8b34d

Please sign in to comment.