6
0

Setup git, why not?

This commit is contained in:
Jon Michael Aanes 2023-12-07 23:56:32 +01:00
parent 78ab3750a1
commit bba9908120

View File

@ -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') != '' }}