Update CICD to setup ssh agent
All checks were successful
Build and Push to Registry / build-and-push (push) Successful in 44s

This commit is contained in:
omaroughriss 2025-09-09 11:46:16 +02:00
parent fbdbc0a699
commit 6c6f49417e

View File

@ -15,6 +15,11 @@ jobs:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up SSH agent
uses: webfactory/ssh-agent@v0.9.1
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
@ -30,6 +35,7 @@ jobs:
with: with:
context: . context: .
push: true push: true
ssh: default
tags: | tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:dev ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:dev