clean CI
All checks were successful
Deploy App / build (push) Successful in 1m57s
Deploy App / deploy (push) Successful in 31s

This commit is contained in:
valere
2026-02-03 15:08:43 +01:00
parent 19d19edb1c
commit b8cc3d277d
4 changed files with 25 additions and 1 deletions

23
.github/workflows/merge.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
name: Delete Merged Branches
on:
pull_request:
types: [closed]
jobs:
delete-branch:
runs-on: ubuntu-22.04
container:
volumes:
- /var/docker-web:/var/docker-web
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
steps:
- uses: actions/checkout@v4
- name: Delete merged branch
run: |
BRANCH_NAME="${{ github.event.pull_request.head.ref || github.event.inputs.branch_name }}"
APP_NAME="${BRANCH_NAME}_${GITHUB_REPOSITORY##*/}"
if [ "$BRANCH_NAME" != "main" ] && [ "$BRANCH_NAME" != "develop" ] && [ -n "$APP_NAME" ]; then
bash /var/docker-web/src/cli.sh rm -y "${APP_NAME}"
else
echo "Cannot delete protected branch: $BRANCH_NAME"
fi

View File

@@ -14,6 +14,7 @@ jobs:
bash ./.github/workflows/setup-env.sh bash ./.github/workflows/setup-env.sh
set -a && source .env && set +a set -a && source .env && set +a
if [ -n "$APP_NAME" ]; then if [ -n "$APP_NAME" ]; then
set -a && source .env && set +a
bash /var/docker-web/src/cli.sh down "${APP_NAME}" bash /var/docker-web/src/cli.sh down "${APP_NAME}"
rm -rf "$APP_DIR" rm -rf "$APP_DIR"
mkdir "$APP_DIR" mkdir "$APP_DIR"

0
.github/workflows/setup-env.sh vendored Executable file → Normal file
View File

View File

@@ -1,5 +1,5 @@
<template> <template>
<div> <div>
here is the New front here is the New New front
</div> </div>
</template> </template>