8
All checks were successful
Deploy Production / Deploy to Staging (push) Has been skipped

This commit is contained in:
Alex Shevchuk
2025-08-18 17:56:11 +03:00
parent 176cd406dd
commit 53fe811f06

View File

@@ -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 \