Skip to content

Commit

Permalink
Merge pull request #6 from Jonnyan404/master
Browse files Browse the repository at this point in the history
增加armv8和armv7平台架构
  • Loading branch information
kingwrcy authored Apr 20, 2024
2 parents b64340c + ee0cbb8 commit 796d050
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Extract Version
id: version_step
run: |
echo "##[set-output name=version;]VERSION=${GITHUB_REF#$"refs/tags/v"}"
echo "##[set-output name=version_tag;]kingwrcy/moments:${GITHUB_REF#$"refs/tags/v"}"
echo "##[set-output name=latest_tag;]kingwrcy/moments:latest"
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USER_NAME }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
Expand All @@ -33,12 +33,13 @@ jobs:
- name: Build and push Docker images
id: docker_build
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
push: true
context: .
platforms: linux/amd64,linux/arm64,linux/arm/v7
tags: |
${{env.VERSION_TAG}}
${{env.LASTEST_TAG}}
build-args: |
${{steps.version_step.outputs.version}}
${{steps.version_step.outputs.version}}

0 comments on commit 796d050

Please sign in to comment.