Compare commits
4 commits
bd44979fb0
...
96e75eb3b2
| Author | SHA1 | Date | |
|---|---|---|---|
|
96e75eb3b2 |
|||
|
6e5adeae7d |
|||
|
aaadc9937b |
|||
|
2f86bc049d |
1 changed files with 36 additions and 0 deletions
36
.forgejo/workflows/deploy.yaml
Normal file
36
.forgejo/workflows/deploy.yaml
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- add_ci
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: docker.io/library/alpine
|
||||||
|
steps:
|
||||||
|
- name: Pipeline info
|
||||||
|
run: |
|
||||||
|
echo "Run triggered by ${{ github.event_name }} (${{ github.event.action }}) on ref ${{ github.ref_name }}"
|
||||||
|
|
||||||
|
- name: Install packages
|
||||||
|
run: |
|
||||||
|
apk update
|
||||||
|
# For CI actions.
|
||||||
|
apk add nodejs-current git
|
||||||
|
# For uploading.
|
||||||
|
apk add rsync openssh
|
||||||
|
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Prepare keys
|
||||||
|
run: |
|
||||||
|
echo "${{ secrets.SSH_DEPLOY_KEY }}" > deploykey.priv
|
||||||
|
chmod 400 deploykey.priv
|
||||||
|
echo "${{ secrets.SSH_KNOWN_HOSTS_FILE }}" > ./known_hosts
|
||||||
|
|
||||||
|
- name: Upload styleguide
|
||||||
|
if: (github.event_name == 'push' || github.event_name == 'schedule') && (github.ref_name == 'main' || github.ref_name == 'add_ci')
|
||||||
|
run: |
|
||||||
|
rsync -v -r --delete -e "ssh -i deploykey.priv -o 'UserKnownHostsFile ./known_hosts'" styleguide/ eh22-styleguide-deploy@eh22-wiki-intern.hamburg.ccc.de:/var/www/eh22-styleguide/
|
||||||
Loading…
Add table
Add a link
Reference in a new issue