Skip to content

Commit

Permalink
Improved docker push (#15)
Browse files Browse the repository at this point in the history
* Update docker-push.yml

* Update docker-push.yml

* Update docker-push.yml
  • Loading branch information
bedroesb authored Jun 28, 2024
1 parent d5b2716 commit 97c1671
Showing 1 changed file with 14 additions and 30 deletions.
44 changes: 14 additions & 30 deletions .github/workflows/docker-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,42 +4,26 @@ on:
release:
types: [published]
workflow_dispatch:

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
docker:
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v2

- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: |
vibpsb/i-adhore
tags: |
type=ref,event=tag
- name: Login to DockerHub
uses: docker/login-action@v1
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Build and push to Docker Hub
uses: docker/build-push-action@v2
-
name: Build and push
uses: docker/build-push-action@v6
with:
push: true
platforms: linux/arm64,linux/amd64
context: .
tags: |
${{ steps.meta.outputs.tags }}
tags: vibpsb/i-adhore:latest, vibpsb/i-adhore:${{ steps.meta.outputs.tags }}

0 comments on commit 97c1671

Please sign in to comment.