Update .forgejo/workflows/deploy.yaml
All checks were successful
deploy blog / deploy (push) Successful in 1m2s
All checks were successful
deploy blog / deploy (push) Successful in 1m2s
This commit is contained in:
parent
c2cbeec0e5
commit
1eb7df1eb0
1 changed files with 4 additions and 4 deletions
|
|
@ -13,14 +13,14 @@ jobs:
|
|||
- name: Install dependencies
|
||||
run: apk --no-cache add hugo python3 py3-pip git openssh-client rsync
|
||||
|
||||
- name: Check install
|
||||
- name: Check versions
|
||||
run: |
|
||||
cat /etc/os-release
|
||||
git version
|
||||
hugo version
|
||||
python --version
|
||||
|
||||
- name: Checkout repo
|
||||
- name: Checkout repository
|
||||
run: |
|
||||
git clone -b ${{ forgejo.ref_name }} --recursive https://git.berlin.ccc.de/cccb-website-team/www.git .
|
||||
git status
|
||||
|
|
@ -42,10 +42,10 @@ jobs:
|
|||
ssh-keygen -f ~/.ssh/id_ed25519 -y > ~/.ssh/id_ed25519.pub
|
||||
cat ~/.ssh/id_ed25519.pub
|
||||
|
||||
- name: Sync rendered site to staging
|
||||
- name: Rsync rendered site
|
||||
env:
|
||||
DEPLOY_DIR: ${{ forgejo.ref_name == 'production' && '/srv/http/www/' || '/srv/http/www-staging/' }}
|
||||
run: rsync -var -e 'ssh -i ~/.ssh/id_ed25519' ./public/ deploy@www.berlin.ccc.de:$DEPLOY_DIR
|
||||
run: rsync -var -e 'ssh -i ~/.ssh/id_ed25519 -o StrictHostKeyChecking=yes' ./public/ deploy@www.berlin.ccc.de:$DEPLOY_DIR
|
||||
|
||||
- name: Cleanup
|
||||
if: ${{ always() }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue