Compare commits
No commits in common. "ba9faf470018a6929dd7022454e52b61397910f4" and "cb089a6d0590a0578699d2259d2d38436749ec36" have entirely different histories.
ba9faf4700
...
cb089a6d05
1 changed files with 2 additions and 48 deletions
|
@ -79,54 +79,8 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
rsync -v -r --delete -e "ssh -i deploykey.priv -o 'UserKnownHostsFile ./known_hosts'" public/ ccchh-website-deploy@public-web-static-intern.hamburg.ccc.de:/var/www/hamburg.ccc.de/
|
rsync -v -r --delete -e "ssh -i deploykey.priv -o 'UserKnownHostsFile ./known_hosts'" public/ ccchh-website-deploy@public-web-static-intern.hamburg.ccc.de:/var/www/hamburg.ccc.de/
|
||||||
|
|
||||||
- name: Upload the website build as an artifact
|
- uses: actions/upload-artifact@v3
|
||||||
uses: actions/upload-artifact@v3
|
if: github.event_name == 'pull_request'
|
||||||
with:
|
with:
|
||||||
name: website-build
|
name: website-build
|
||||||
path: public/
|
path: public/
|
||||||
|
|
||||||
deploy-staging:
|
|
||||||
if: github.event_name == 'pull_request'
|
|
||||||
needs:
|
|
||||||
- build
|
|
||||||
runs-on: docker
|
|
||||||
container:
|
|
||||||
image: code.forgejo.org/oci/node:22-bookworm
|
|
||||||
steps:
|
|
||||||
- name: Download the website build artifact
|
|
||||||
uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: website-build
|
|
||||||
path: website-build
|
|
||||||
|
|
||||||
- name: Install packages
|
|
||||||
run: |
|
|
||||||
apt update
|
|
||||||
# For uploading.
|
|
||||||
apt install -y rsync
|
|
||||||
|
|
||||||
- name: debugging
|
|
||||||
run: |
|
|
||||||
ls -la
|
|
||||||
echo "website-build:"
|
|
||||||
ls -la website-build
|
|
||||||
|
|
||||||
deploy-prod:
|
|
||||||
if: (github.event_name == 'push' || github.event_name == 'schedule') && github.ref_name == 'main'
|
|
||||||
needs:
|
|
||||||
- build
|
|
||||||
runs-on: docker
|
|
||||||
container:
|
|
||||||
image: code.forgejo.org/oci/node:22-bookworm
|
|
||||||
steps:
|
|
||||||
- name: Download the website build artifact
|
|
||||||
uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: website-build
|
|
||||||
path: website-build
|
|
||||||
|
|
||||||
- name: Install packages
|
|
||||||
run: |
|
|
||||||
apt update
|
|
||||||
# For uploading.
|
|
||||||
apt install -y rsync
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue