Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
fix: deployment conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
Rindula committed Oct 27, 2021
1 parent 290aa7e commit 69beb37
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ jobs:
build_hetzner:
name: Build (Hetzner)
runs-on: ubuntu-latest
outputs:
pushed: ${{ steps.commit_step.outputs.pushed }}
environment:
name: hetzner
concurrency:
Expand Down Expand Up @@ -88,20 +86,17 @@ jobs:
with:
node-version: '15'
- name: Vue - Bezahlen - Abhängigkeiten installieren
if: "${{ steps.commit_step.outputs.pushed == 'false' }}"
uses: nick-invision/[email protected]
with:
timeout_minutes: 10
max_attempts: 3
warning_on_retry: false
command: cd $GITHUB_WORKSPACE/webroot/vue-apps/bezahlen && npm ci
- working-directory: webroot/vue-apps/bezahlen
if: "${{ steps.commit_step.outputs.pushed == 'false' }}"
name: Vue - Bezahlen - Bauen
run: |
npm run build
- name: Config anpassen
if: "${{ steps.commit_step.outputs.pushed == 'false' }}"
run: |
sed -i 's/db\_user/hirsch/' config/app_local.php
sed -i 's/db\_pass/${{ secrets.DBPASS }}/' config/app_local.php
Expand All @@ -113,7 +108,6 @@ jobs:
sed -i "s/hirschcache/${{ steps.get_version.outputs.VERSION }}/" webroot/sw.js
sed -i "s/user_auth_string/$(echo -n ${{ secrets.HT_USER }}:${{ secrets.HT_PASS }} | base64)/" webroot/sw.js
- name: Passwortschutz erstellen
if: "${{ steps.commit_step.outputs.pushed == 'false' }}"
run: |
echo '' >> webroot/.htaccess
echo 'AuthType Basic' >> webroot/.htaccess
Expand All @@ -127,18 +121,15 @@ jobs:
echo '</Files>' >> webroot/.htaccess
htpasswd -cb .htpasswd "${{ secrets.HT_USER }}" "${{ secrets.HT_PASS }}"
- name: Pack Files
if: "${{ steps.commit_step.outputs.pushed == 'false' }}"
run: tar -cf artifact.tar .
- uses: actions/upload-artifact@master
if: "${{ steps.commit_step.outputs.pushed == 'false' }}"
with:
name: deploy_hetzner
path: artifact.tar
retention-days: 1
deploy_hetzner:
name: Deploy (Hetzner)
runs-on: ubuntu-latest
if: "${{ needs.build_hetzner.outputs.pushed == 'false' }}"
concurrency:
group: deploy-${{github.ref}}
cancel-in-progress: false
Expand Down

0 comments on commit 69beb37

Please sign in to comment.