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 e7ffc66 commit eff7860
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,30 +29,30 @@ jobs:
uses: EndBug/latest-tag@latest

- name: Checkout code
uses: actions/checkout@latest
uses: actions/checkout@v3

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

- name: Login to Docker Hub
uses: docker/login-action@latest
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

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

- name: Set up SSH agent
uses: webfactory/ssh-agent@latest
uses: webfactory/ssh-agent@v0.5.4
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Save ssh private key file
run: echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/deploy-ssh-key && chmod 600 ~/.ssh/deploy-ssh-key

- name: Build and push Docker image
uses: docker/build-push-action@latest
uses: docker/build-push-action@v4
with:
context: ${{ matrix.context }}
file: ${{ matrix.dockerfile }}
Expand Down

0 comments on commit eff7860

Please sign in to comment.