👷 Add continuous deliverly using Forgejo
Some checks failed
Deploy / deploy (push) Failing after 4s

This commit is contained in:
Marcel Kapfer 2024-03-17 22:59:12 +01:00
parent f854d60108
commit 2e4b7a93ce
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09
2 changed files with 53 additions and 0 deletions

16
deploy.sh Executable file
View file

@ -0,0 +1,16 @@
#!/bin/bash
set -euo pipefail
INFO="\033[0;30m\033[47m"
NC="\033[0m"
log() {
echo -e "${INFO} INFO ${NC} $1"
}
log "Pulling latest changes from Git repository..."
git pull origin "$1"
log "Installing new composer dependencies and update autoloader..."
composer install --no-interaction --prefer-dist --optimize-autoloader