Instead of building a docker image, deploy the generated files directly to the static web server.
This commit is contained in:
parent
a665c5c9e9
commit
b90f8f7462
3 changed files with 97 additions and 36 deletions
23
.forgejo/workflows/cleanup.yaml
Normal file
23
.forgejo/workflows/cleanup.yaml
Normal file
|
@ -0,0 +1,23 @@
|
|||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- closed
|
||||
|
||||
jobs:
|
||||
cleanup-staging:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: code.forgejo.org/oci/node:20-bookworm
|
||||
steps:
|
||||
- name: Pipeline info PR
|
||||
run: |
|
||||
echo "Run triggered by ${{ github.event_name }} (${{ github.event.action }}) on ref ${{ github.ref_name }}"
|
||||
|
||||
- name: Staging Deployment - Prepare keys
|
||||
run: |
|
||||
echo "${{ secrets.SSH_DEPLOY_KEY }}" > deploykey.priv
|
||||
chmod 400 deploykey.priv
|
||||
echo "${{ secrets.SSH_KNOWN_HOSTS_FILE }}" > ./known_hosts
|
||||
- name: Staging Deployment - Remove PR from staging
|
||||
run: |
|
||||
ssh -i deploykey.priv -o 'UserKnownHostsFile ./known_hosts' ht-ccchh-website-deploy@public-web-static-intern.hamburg.ccc.de -t "rm -r /var/www/staging.hackertours.hamburg.ccc.de/pr${{ github.event.pull_request.number }}/"
|
Loading…
Add table
Add a link
Reference in a new issue