3 Commits
yeah ... main

Author SHA1 Message Date
da56a21ec5 Update .env (#2)
Some checks failed
Deploy App / build (push) Failing after 12s
Deploy App / deploy (push) Has been skipped
Reviewed-on: #2
2026-02-03 09:03:49 +00:00
099bc9703d Update .github/workflows/deploy.yml
Some checks failed
Deploy App / build (push) Failing after 18s
Deploy App / deploy (push) Has been skipped
2026-02-02 15:30:00 +00:00
ff7e2e9771 Update .github/workflows/deploy.yml
All checks were successful
Deploy App / build (push) Successful in 10s
2026-02-02 10:22:15 +00:00
2 changed files with 10 additions and 3 deletions

1
.env
View File

@@ -1 +1,2 @@
DOMAIN=evilspins.com

View File

@@ -16,8 +16,8 @@ jobs:
# Configuration pour les branches non-principales
if [ "$BRANCH_NAME" != "main" ] && [ "$BRANCH_NAME" != "master" ]; then
sed -i "s/PORT=.*/PORT=$PORT+1/" .env
sed -i "s#DOMAIN=.*#DOMAIN=$BRANCH_NAME.$DOMAIN#" .env
#sed -i "s/container_name: evilspins/container_name: $BRANCH_NAME.$DOMAIN/" docker-compose.yml
sed -i "s/DOMAIN=.*/DOMAIN=$BRANCH_NAME.$DOMAIN/" .env
sed -i "s/container_name: evilspins/container_name: $BRANCH_NAME.$DOMAIN/" docker-compose.yml
sed -i "s/REPO_NAME=.*/REPO_NAME=$BRANCH_NAME.$DOMAIN/" .env
fi
sed -i "s/REPO_NAME=.*/REPO_NAME=${GITHUB_REPOSITORY##*/}/" .env
@@ -26,7 +26,13 @@ jobs:
- name: Build app
run: |
set -a && source .env && set +a
echo "2nd step, for BRANCH $BRANCH_NAME is domain correct : $DOMAIN ?"
bash /var/docker-web/src/cli.sh down "${REPO_NAME}"
rm -rf "$APP_DIR"
mkdir "$APP_DIR"
cp -a $(find . -mindepth 1 -maxdepth 1 ! -name '.git' ! -name 'node_modules') "$APP_DIR/"
export COMPOSE_BAKE=false
docker rmi "local/${REPO_NAME}" 2>/dev/null || true
bash /var/docker-web/src/cli.sh build "${REPO_NAME}"
deploy:
runs-on: ubuntu-22.04