Skip to content

Commit

Permalink
now eden is deployed last
Browse files Browse the repository at this point in the history
  • Loading branch information
nishogi committed Jun 1, 2024
1 parent 6e45b1b commit 725c47f
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,6 @@ on:
- main

jobs:
deploy-eden:
runs-on: self-hosted
steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Deploy EDEN
if: ${{ github.event_name == 'push' && (contains(github.event.head_commit.message, 'website') || contains(join(github.event.commits.*.modified, ''), 'website/')) }}
env:
TARGET_PATH: /var/www/edend12.imtbs-tsp.eu
run: |
rm -rf $TARGET_PATH.bak
cp -R $TARGET_PATH $TARGET_PATH.bak
cp -R ./website $TARGET_PATH
copy-proxy-config:
runs-on: self-hosted
steps:
Expand Down Expand Up @@ -64,4 +49,20 @@ jobs:
run: |
rm -rf $TARGET_PATH.bak
cp -R $TARGET_PATH $TARGET_PATH.bak
cp -R ./dns $TARGET_PATH
cp -R ./dns $TARGET_PATH
deploy-eden:
runs-on: self-hosted
needs: [copy-proxy-config, copy-tofu-config, copy-dns-config]
steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Deploy EDEN
if: ${{ github.event_name == 'push' && (contains(github.event.head_commit.message, 'website') || contains(join(github.event.commits.*.modified, ''), 'website/')) }}
env:
TARGET_PATH: /var/www/edend12.imtbs-tsp.eu
run: |
rm -rf $TARGET_PATH.bak
cp -R $TARGET_PATH $TARGET_PATH.bak
cp -R ./website $TARGET_PATH

0 comments on commit 725c47f

Please sign in to comment.