footer and version
Some checks failed
Build and push / Pulling repo on server (push) Failing after 3s

This commit is contained in:
2023-10-26 11:15:39 +02:00
parent 501b893688
commit c0b4b08cbb
5 changed files with 103 additions and 6 deletions

View File

@ -19,7 +19,18 @@ jobs:
mkdir -p ~/.ssh/
echo "$SSH_KEY" > ~/.ssh/staging.key
chmod 600 ~/.ssh/staging.key
- name: Run docker restart on Server
- name: Run git pull on Server
run: |
ssh -i ~/.ssh/staging.key -o StrictHostKeyChecking=no -p 22 -o UserKnownHostsFile=/dev/null ${{ secrets.SSH_WEBSERVER_IP }} "cd /var/www/dogstats/ && git pull"
- name: Prepare
id: prep
run: |
SHORTREF=${GITHUB_SHA::8}
# Set output parameters.
echo ::set-output name=shortref::${SHORTREF}
- name: Updating version
run: |
echo ${{ steps.prep.outputs.shortref }} | ssh -i ~/.ssh/staging.key -o StrictHostKeyChecking=no -p 22 -o UserKnownHostsFile=/dev/null ${{ secrets.SSH_WEBSERVER_IP }} > "/var/www/dogstats/web/version.txt"