diff --git a/.gitea/workflows/container.yaml b/.gitea/workflows/container.yaml index cec63e0..00f6b56 100644 --- a/.gitea/workflows/container.yaml +++ b/.gitea/workflows/container.yaml @@ -53,9 +53,28 @@ jobs: exit 1 fi + - name: Setting up SSH + if: ${{ hashFiles('requirements_private.txt') != '' }} + uses: https://github.com/shimataro/ssh-key-action@v2.5.1 + with: + 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: Checkout uses: actions/checkout@v3 + - name: Download private dependencies + if: ${{ hashFiles('requirements_private.txt') != '' }} + run: | + mkdir -p private_deps + cd private_deps + cat ../requirements_private.txt | xargs -L 1 git clone + - name: Set up QEMU uses: docker/setup-qemu-action@v2 @@ -69,25 +88,6 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - - name: Setting up SSH - if: ${{ hashFiles('requirements_private.txt') != '' }} - uses: https://github.com/shimataro/ssh-key-action@v2.5.1 - with: - 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') != '' }} - run: | - mkdir -p private_deps - cd private_deps - cat requirements_private.txt | xargs -L 1 git clone - - name: Get Meta id: meta run: |