update
All checks were successful
Deploy to Production / build-and-deploy (push) Successful in 1m25s
All checks were successful
Deploy to Production / build-and-deploy (push) Successful in 1m25s
This commit is contained in:
11
.github/workflows/deploy.yaml
vendored
11
.github/workflows/deploy.yaml
vendored
@@ -89,15 +89,6 @@ jobs:
|
||||
cd $DIR
|
||||
git fetch origin main
|
||||
git reset --hard origin/main
|
||||
cp .env.example .env
|
||||
update_env() {
|
||||
local env_file=".env"
|
||||
cp .env.example "$env_file"
|
||||
for kv in "$@"; do
|
||||
local key="${kv%%=*}"
|
||||
local value="${kv#*=}"
|
||||
sed -i "s|^$key=.*|$key=$value|" "$env_file"
|
||||
done
|
||||
}
|
||||
|
||||
export PORT=${{ vars.PORT }}
|
||||
docker stack deploy -c stack.yaml ${{ env.PROJECT_NAME }}
|
||||
|
||||
Reference in New Issue
Block a user