Skip to content

Commit

Permalink
Rename TARGET_* to DEPLOY_*, since technically we're cleaning up an o…
Browse files Browse the repository at this point in the history
…ld deploy.
  • Loading branch information
LswaN58 committed May 1, 2024
1 parent 7aa1808 commit 095a6e3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/website_branch_del_clean.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ on:
workflow_dispatch: # Allow manual trigger of this workflow from the Actions tab

env:
TARGET_HOST: ${{ vars.OGD_STAGING_HOST }}
TARGET_PATH: ${{ vars.WEB_PATH }}/${{ github.event.repository.name }}/${{ github.event.ref }}
TARGET_URL: ${{ vars.OGD_STAGING_HOST }}/${{ github.event.repository.name }}/${{ github.event.ref }}
DEPLOY_HOST: ${{ vars.OGD_STAGING_HOST }}
DEPLOY_PATH: ${{ vars.WEB_PATH }}/${{ github.event.repository.name }}/${{ github.event.ref }}
DEPLOY_URL: ${{ vars.OGD_STAGING_HOST }}/${{ github.event.repository.name }}/${{ github.event.ref }}

jobs:
branch_delete:
Expand Down Expand Up @@ -39,10 +39,10 @@ jobs:
chmod 600 ./key.txt
- name: Remove branch folder
run: ssh -o StrictHostKeyChecking=no -t -i ./key.txt ${{ secrets.CLEAN_USER }}@${{ env.TARGET_HOST }} "rm -r ${{ env.TARGET_PATH }}"
run: ssh -o StrictHostKeyChecking=no -t -i ./key.txt ${{ secrets.CLEAN_USER }}@${{ env.DEPLOY_HOST }} "rm -r ${{ env.DEPLOY_PATH }}"

- name: Announce cleanup
run: echo "Removed branch deploy at ${{ env.TARGET_URL }}"
run: echo "Removed branch deploy at ${{ env.DEPLOY_URL }}"

- name: Upload logs as artifacts
uses: actions/upload-artifact@v2
Expand Down

0 comments on commit 095a6e3

Please sign in to comment.