Skip to content

Commit

Permalink
Fix indentation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
GreenzieNick committed May 2, 2023
1 parent 8f523db commit 6184390
Showing 1 changed file with 37 additions and 37 deletions.
74 changes: 37 additions & 37 deletions .github/workflows/main_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6184390

Please sign in to comment.