Skip to content

Commit

Permalink
chore: update github actions (#567)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinsaporiti authored Dec 4, 2023
1 parent 5777c05 commit 51cf2eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 34 deletions.
18 changes: 2 additions & 16 deletions .github/workflows/dockerhub-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,28 +43,14 @@ jobs:
push: true
tags: 0xpolygon/issuernode-ui:${{ env.IMAGE_TAG }}

- name: Build and push amd64 image
- name: Build and push amd64 and arm64 image
uses: docker/build-push-action@v4
env:
IMAGE_TAG: ${{ steps.version.outputs.VERSION }}
with:
context: .
platforms: linux/amd64
platforms: linux/amd64,linux/arm64
push: true
tags: 0xpolygon/issuernode:${{ env.IMAGE_TAG }}

- name: Rename Docker Arm File
run: |
mv Dockerfile Dockerfile-amd
mv Dockerfile-arm Dockerfile
- name: Build and push arm64 image
uses: docker/build-push-action@v4
env:
IMAGE_TAG: ${{ steps.version.outputs.VERSION }}
with:
context: .
platforms: linux/arm64
push: true
tags: 0xpolygon/issuernode-arm:${{ env.IMAGE_TAG }}

21 changes: 3 additions & 18 deletions .github/workflows/dockerhub-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,27 +37,12 @@ jobs:
push: true
tags: 0xpolygon/issuernode-ui:${{ env.IMAGE_TAG }}

- name: Build and push amd64 image
- name: Build and push amd64 and arm64 image
uses: docker/build-push-action@v4
env:
IMAGE_TAG: latest
with:
context: .
platforms: linux/amd64
platforms: linux/amd64,linux/arm64
push: true
tags: 0xpolygon/issuernode:${{ env.IMAGE_TAG }}

- name: Rename Docker Arm File
run: |
mv Dockerfile Dockerfile-amd
mv Dockerfile-arm Dockerfile
- name: Build and push arm64 image
uses: docker/build-push-action@v4
env:
IMAGE_TAG: latest
with:
context: .
platforms: linux/arm64
push: true
tags: 0xpolygon/issuernode-arm:${{ env.IMAGE_TAG }}
tags: 0xpolygon/issuernode:${{ env.IMAGE_TAG }}

0 comments on commit 51cf2eb

Please sign in to comment.