From 53fe811f066ad798bbb153bcc177c8c9011c2134 Mon Sep 17 00:00:00 2001 From: Alex Shevchuk Date: Mon, 18 Aug 2025 17:56:11 +0300 Subject: [PATCH] 8 --- .gitea/workflows/deploy_staging.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy_staging.yaml b/.gitea/workflows/deploy_staging.yaml index f1dbfe8..368693c 100644 --- a/.gitea/workflows/deploy_staging.yaml +++ b/.gitea/workflows/deploy_staging.yaml @@ -85,7 +85,7 @@ jobs: if [ "${{ inputs.version }}" == "latest" ]; then TAG=${{ steps.git-metadata.outputs.GIT_TAG != "none" && steps.git-metadata.outputs.GIT_TAG || steps.git-metadata.outputs.GIT_SHA }} IMAGE_NAME="molvaapp/${{ matrix.project }}" - + docker build -t $IMAGE_NAME:$TAG . docker push $IMAGE_NAME:$TAG echo "Pushed image $IMAGE_NAME:$TAG" @@ -95,6 +95,8 @@ jobs: fi - name: Deploy to Swarm + env: + SWARM_MANAGER_HOST: https://dev-molva.ru:2377 run: | if [ "${{ inputs.version }}" == "latest" ]; then VERSION="latest" @@ -105,7 +107,7 @@ jobs: echo "Deploying version $VERSION to ${{ inputs.environment }}..." echo "Log level: ${{ inputs.logLevel }}" - docker -H ${{ secrets.SWARM_MANAGER_HOST }} \ + docker -H $SWARM_MANAGER_HOST \ stack deploy \ --with-registry-auth \ -c docker-compose.staging.yaml \