Skip to content

Commit

Permalink
Update docker-build.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Marcin Kozlowski <[email protected]>
  • Loading branch information
marcinguy authored Jul 3, 2024
1 parent ceda716 commit 23cfa06
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,15 @@ jobs:
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Build and Push Docker Images
uses: docker/build-push-action@v2
- name: Save ssh private key file
run: echo "${{ secrets.SSH_PRIVATE_KEY }}" > deploy-ssh-key
- name: Build and push app image
uses: docker/build-push-action@v5
with:
ssh: default
push: true
ssh: |
default=deploy-ssh-key
context: ${{ matrix.context }}
file: ${{ matrix.dockerfile }}
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ matrix.service }}:latest

0 comments on commit 23cfa06

Please sign in to comment.