diff --git a/.github/workflows/main_workflow.yml b/.github/workflows/main_workflow.yml index 94abf34..a446ee3 100644 --- a/.github/workflows/main_workflow.yml +++ b/.github/workflows/main_workflow.yml @@ -47,41 +47,41 @@ jobs: name: alldebs-${{ github.run_id }} path: /debians/ retention-days: 1 - deploy: - if: ${{ github.ref_name == 'noetic' || github.ref_name == 'noetic-devel' }} - name: Aptly Deploy - needs: - - debianize - timeout-minutes: 10 - runs-on: - - self-hosted - - greenzie - container: - image: greenzie/aptly:3.15.5-focal-noetic - credentials: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_TOKEN }} - steps: - - name: Install SSH Key - uses: shimataro/ssh-key-action@v2 - with: - key: ${{ secrets.SSH_PRIVATE_KEY }} - known_hosts: ${{ env.SERVER_HOSTNAME }} - - name: Download Artifacts - uses: actions/download-artifact@v3 - with: - name: alldebs-${{ github.run_id }} - path: /debians - - name: Deploy Debians - working-directory: /debians - run: | - if [ -n "${{ inputs.repository }}" ] && [ "${{ github.ref_name }}" == "noetic" ]; then - aptly repo deploy --repo "${{ inputs.repository }}" - elif [ "${{ github.ref_name }}" == "noetic" ]; then - aptly repo deploy --repo rc - elif [ "${{ github.ref_name }}" == "noetic-devel" ]; then - aptly repo deploy --repo experimental - else - aptly repo deploy --repo dependency - fi + deploy: + if: ${{ github.ref_name == 'noetic' || github.ref_name == 'noetic-devel' }} + name: Aptly Deploy + needs: + - debianize + timeout-minutes: 10 + runs-on: + - self-hosted + - greenzie + container: + image: greenzie/aptly:3.15.5-focal-noetic + credentials: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_TOKEN }} + steps: + - name: Install SSH Key + uses: shimataro/ssh-key-action@v2 + with: + key: ${{ secrets.SSH_PRIVATE_KEY }} + known_hosts: ${{ env.SERVER_HOSTNAME }} + - name: Download Artifacts + uses: actions/download-artifact@v3 + with: + name: alldebs-${{ github.run_id }} + path: /debians + - name: Deploy Debians + working-directory: /debians + run: | + if [ -n "${{ inputs.repository }}" ] && [ "${{ github.ref_name }}" == "noetic" ]; then + aptly repo deploy --repo "${{ inputs.repository }}" + elif [ "${{ github.ref_name }}" == "noetic" ]; then + aptly repo deploy --repo rc + elif [ "${{ github.ref_name }}" == "noetic-devel" ]; then + aptly repo deploy --repo experimental + else + aptly repo deploy --repo dependency + fi