Skip to content

Commit

Permalink
ci: fix push dockerhub
Browse files Browse the repository at this point in the history
  • Loading branch information
bitxeno committed Jun 25, 2024
1 parent d9f85ae commit 7708486
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/release-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,11 @@ jobs:
with:
name: ${{needs.build.outputs.APP_NAME}}
path: build
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
if: ${{ steps.vars.outputs.HAS_DOCKER_TOKEN }}
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
Expand All @@ -131,13 +134,12 @@ jobs:
with:
images: ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPOSITORY }}
- name: Build and push Docker images to DockerHub
if: ${{ steps.vars.outputs.HAS_DOCKER_TOKEN }}
uses: docker/build-push-action@v5
with:
context: .
push: true
provenance: false
platforms: linux/amd64
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
Expand All @@ -161,9 +163,10 @@ jobs:
with:
name: ${{needs.build.outputs.APP_NAME}}
path: build
- name: Display structure of downloaded files
run: ls -R
working-directory: build
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
Expand All @@ -181,7 +184,7 @@ jobs:
context: .
push: true
provenance: false
platforms: linux/amd64
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,11 @@ jobs:
with:
name: ${{needs.build.outputs.APP_NAME}}
path: build
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
if: ${{ steps.vars.outputs.HAS_DOCKER_TOKEN }}
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
Expand All @@ -150,7 +153,6 @@ jobs:
with:
images: ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPOSITORY }}
- name: Build and push Docker images to DockerHub
if: ${{ steps.vars.outputs.HAS_DOCKER_TOKEN }}
uses: docker/build-push-action@v5
with:
context: .
Expand Down Expand Up @@ -180,9 +182,10 @@ jobs:
with:
name: ${{needs.build.outputs.APP_NAME}}
path: build
- name: Display structure of downloaded files
run: ls -R
working-directory: build
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
Expand Down

0 comments on commit 7708486

Please sign in to comment.