Skip to content

Commit

Permalink
Update docker-build-push.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dluc authored Feb 15, 2024
1 parent f48c747 commit 70d5f84
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Build image and push it to docker hub
# Build Docker image and push it to docker hub

name: Docker Image Build and Push to DockerHub

Expand All @@ -11,6 +11,18 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
images: |
${{ vars.DOCKERHUB_USERNAME }}/service
# Docker tags to generate
tags: |
type=raw,value=latest
type=sha
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

Expand All @@ -28,6 +40,5 @@ jobs:
with:
push: true
platforms: linux/amd64,linux/arm64
tags: |
${{ vars.DOCKERHUB_USERNAME }}/service:latest
${{ vars.DOCKERHUB_USERNAME }}/service:${{ env.GITHUB_SHA }}
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta.outputs.tags }}

0 comments on commit 70d5f84

Please sign in to comment.