6 Commits
main ... yeah

Author SHA1 Message Date
b59578eb1f Update .github/workflows/deploy.yml
Some checks failed
Deploy App / build (push) Failing after 13s
Deploy App / deploy (push) Has been skipped
2026-02-02 16:00:58 +00:00
64b5b87567 Update .github/workflows/deploy.yml
Some checks failed
Deploy App / build (push) Failing after 11s
Deploy App / deploy (push) Has been skipped
2026-02-02 15:32:12 +00:00
ca0799dc59 Update .github/workflows/deploy.yml
All checks were successful
Deploy App / build (push) Successful in 10s
2026-02-02 10:37:50 +00:00
d88e984b7f Update .github/workflows/deploy.yml
All checks were successful
Deploy App / build (push) Successful in 11s
2026-02-02 10:37:22 +00:00
1cec3b3638 Update .github/workflows/deploy.yml
All checks were successful
Deploy App / build (push) Successful in 10s
2026-02-02 10:36:55 +00:00
valere
e583d0b413 yeah
All checks were successful
Deploy App / build (push) Successful in 10s
2026-02-02 11:18:35 +01:00
2 changed files with 3 additions and 10 deletions

1
.env
View File

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

View File

@@ -16,8 +16,8 @@ jobs:
# Configuration pour les branches non-principales # Configuration pour les branches non-principales
if [ "$BRANCH_NAME" != "main" ] && [ "$BRANCH_NAME" != "master" ]; then if [ "$BRANCH_NAME" != "main" ] && [ "$BRANCH_NAME" != "master" ]; then
sed -i "s/PORT=.*/PORT=$PORT+1/" .env sed -i "s/PORT=.*/PORT=$PORT+1/" .env
sed -i "s/DOMAIN=.*/DOMAIN=$BRANCH_NAME.$DOMAIN/" .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/container_name: evilspins/container_name: $BRANCH_NAME.$DOMAIN/" docker-compose.yml
sed -i "s/REPO_NAME=.*/REPO_NAME=$BRANCH_NAME.$DOMAIN/" .env sed -i "s/REPO_NAME=.*/REPO_NAME=$BRANCH_NAME.$DOMAIN/" .env
fi fi
sed -i "s/REPO_NAME=.*/REPO_NAME=${GITHUB_REPOSITORY##*/}/" .env sed -i "s/REPO_NAME=.*/REPO_NAME=${GITHUB_REPOSITORY##*/}/" .env
@@ -26,13 +26,7 @@ jobs:
- name: Build app - name: Build app
run: | run: |
set -a && source .env && set +a set -a && source .env && set +a
bash /var/docker-web/src/cli.sh down "${REPO_NAME}" echo "2nd step, for BRANCH $BRANCH_NAME is domain correct : $DOMAIN ?"
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: deploy:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04