Skip to content

Commit

Permalink
chore: update workflows config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Mar 14, 2023
1 parent 5c40754 commit f3b8c65
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,7 @@ jobs:
```
# Create Docker Image
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
Expand All @@ -137,17 +134,17 @@ jobs:
with:
push: true
context: .
platforms: linux/amd64,linux/arm64,linux/arm64/v7
tags: ${{ secrets.DOCKER_USER }}/reference:latest
platforms: linux/amd64,linux/arm64
tags: wcjiang/reference:latest

- name: Build and push image:tags
uses: docker/build-push-action@v3
if: steps.create_tag.outputs.successful
with:
push: true
context: .
platforms: linux/amd64,linux/arm64,linux/arm64/v7
tags: ${{ secrets.DOCKER_USER }}/reference:${{steps.changelog.outputs.version}}
platforms: linux/amd64,linux/arm64
tags: wcjiang/reference:${{steps.changelog.outputs.version}}

# Create Docker Image in Github
- name: Login to the GitHub Container Registry
Expand All @@ -162,7 +159,7 @@ jobs:
with:
push: true
context: .
platforms: linux/amd64,linux/arm64,linux/arm64/v7
platforms: linux/amd64,linux/arm64
tags: ghcr.io/jaywcjlove/reference:latest

- name: Build and push image:tags
Expand All @@ -171,7 +168,7 @@ jobs:
with:
push: true
context: .
platforms: linux/amd64,linux/arm64,linux/arm64/v7
platforms: linux/amd64,linux/arm64
tags: ghcr.io/jaywcjlove/reference:${{steps.changelog.outputs.version}}

# # Create Docker Image in Github
Expand Down

0 comments on commit f3b8c65

Please sign in to comment.