diff --git a/.gitea/workflows/container.yaml b/.gitea/workflows/container.yaml index f26a119..b19d4d7 100644 --- a/.gitea/workflows/container.yaml +++ b/.gitea/workflows/container.yaml @@ -25,6 +25,10 @@ on: description: Password (or auth token) to upload built container as. required: true type: string + PIPELINE_WORKER_SSH_KEY: + required: true + PIPELINE_WORKER_KNOWN_HOSTS: + required: true jobs: release-image: @@ -65,12 +69,17 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - - uses: extractions/netrc@v1 + - name: Setting up SSH if: ${{ hashFiles('requirements_private.txt') != '' }} + uses: https://github.com/shimataro/ssh-key-action@v2.5.1 with: - registry: ${{ inputs.DOCKER_REG_DOMAIN }} - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} + key: ${{ secrets.PIPELINE_WORKER_SSH_KEY }} + name: id_rsa + known_hosts: ${{ secrets.PIPELINE_WORKER_KNOWN_HOSTS }} + config: | + Host gitfub + HostName ${{ inputs.DOCKER_REG_DOMAIN }} + User ${{ secrets.DOCKER_USERNAME }} - name: Download private dependencies if: ${{ hashFiles('requirements_private.txt') != '' }}