Files
ci-test/.github/workflows/deploy.yml
valere e583d0b413
All checks were successful
Deploy App / build (push) Successful in 10s
yeah
2026-02-02 11:18:35 +01:00

24 lines
609 B
YAML

name: Deploy App
on: [push]
jobs:
build:
runs-on: ubuntu-22.04
container:
volumes:
- /var/docker-web:/var/docker-web
steps:
- uses: actions/checkout@v4
- name: test ci
run: |
REPO_NAME="${GITHUB_REPOSITORY##*/}"
BRANCH_NAME=$GITHUB_REF_NAME
APP_DIR="/var/docker-web/apps/$REPO_NAME"
if [ "$BRANCH_NAME" != "main" ] && [ "$BRANCH_NAME" != "master" ]; then
sed -i "s/DOMAIN=.*/DOMAIN=$DOMAIN.$BRANCH_NAME/" .env
fi
set -a && source .env
echo $DOMAIN # should be yeah.