Compare commits

..

9 Commits

Author SHA1 Message Date
126bd66ddb and now the build passes with zero errors
All checks were successful
Deploy website on production server when committing on main / test (push) Successful in 9s
(until I shit my pants again with some other shenanigans)
2024-08-21 23:16:03 +02:00
ec6bbafb2e no, as it turns out, variables were not defined
All checks were successful
Deploy website on production server when committing on main / test (push) Successful in 8s
2024-08-21 23:15:08 +02:00
80b3490e37 are variables actually defined?
Some checks failed
Deploy website on production server when committing on main / test (push) Failing after 7s
2024-08-21 23:14:15 +02:00
0c6699e211 does it build on the CI now with submodules?
Some checks failed
Deploy website on production server when committing on main / test (push) Failing after 8s
2024-08-21 23:10:34 +02:00
911d274467 fucking ubuntu shit outdated repos, fuck canonical
Some checks failed
Deploy website on production server when committing on main / test (push) Failing after 11s
2024-08-21 23:03:26 +02:00
3a7beeade5 apt update, of course, now install hugo!
Some checks failed
Deploy website on production server when committing on main / test (push) Failing after 9s
2024-08-21 22:38:18 +02:00
db7f32eb7f need hugo installed to build hugo site, no?
Some checks failed
Deploy website on production server when committing on main / test (push) Failing after 3s
2024-08-21 22:35:44 +02:00
e13bd64dc6 stupid syntax error 2024-08-21 22:31:38 +02:00
f0cfff3818 fixed action syntax error (maybe?)
Some checks failed
Deploy website on production server when committing on main / test (push) Failing after 25s
2024-08-21 22:03:18 +02:00
3 changed files with 14 additions and 7 deletions

View File

@@ -17,11 +17,18 @@ jobs:
steps:
- run: echo "${{ secrets.SSH_PRIVATE_KEY }}" > /private.key
- run: chmod 600 /private.key
- run: |
export HUGO_VERSION=$(curl --silent -I https://github.com/gohugoio/hugo/releases/latest | grep location | sed 's|.*tag/||' | tr -d '\r')
export HUGO_VERSION_SHORT=$(echo ${HUGO_VERSION} | sed 's/v//')
wget https://github.com/gohugoio/hugo/releases/download/${HUGO_VERSION}/hugo_${HUGO_VERSION_SHORT}_linux-amd64.deb
dpkg -i hugo_*.deb
- uses: actions/checkout@v4
with:
submodules: true
- run: APP_VERSION=latest make
- run: |
SSH_PRIVATE_KEY=/private.key
SSH_USERNAME=${{ secrets.SSH_USERNAME }}
DEPLOYMENT_HOST=${{ secrets.DEPLOYMENT_HOST }}
DEPLOYMENT_PATH=${{ secrets.DEPLOYMENT_PATH }}
export SSH_PRIVATE_KEY=/private.key
export SSH_USERNAME=${{ secrets.SSH_USERNAME }}
export DEPLOYMENT_HOST=${{ secrets.DEPLOYMENT_HOST }}
export DEPLOYMENT_PATH=${{ secrets.DEPLOYMENT_PATH }}
make deploy

View File

@@ -4,7 +4,7 @@ include .vars
default: build
prep:
git submodule foreach --recursive bash -c "git checkout $$(git remote show origin | grep HEAD | sed 's/.*\: //'); git pull"
git submodule foreach --recursive bash -c "git checkout \$$(git remote show origin | grep HEAD | sed 's/.*\: //'); git pull"
build: prep
./version.sh