This commit is contained in:
@@ -85,7 +85,7 @@ jobs:
|
|||||||
if [ "${{ inputs.version }}" == "latest" ]; then
|
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 }}
|
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 }}"
|
IMAGE_NAME="molvaapp/${{ matrix.project }}"
|
||||||
|
|
||||||
docker build -t $IMAGE_NAME:$TAG .
|
docker build -t $IMAGE_NAME:$TAG .
|
||||||
docker push $IMAGE_NAME:$TAG
|
docker push $IMAGE_NAME:$TAG
|
||||||
echo "Pushed image $IMAGE_NAME:$TAG"
|
echo "Pushed image $IMAGE_NAME:$TAG"
|
||||||
@@ -95,6 +95,8 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Deploy to Swarm
|
- name: Deploy to Swarm
|
||||||
|
env:
|
||||||
|
SWARM_MANAGER_HOST: https://dev-molva.ru:2377
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ inputs.version }}" == "latest" ]; then
|
if [ "${{ inputs.version }}" == "latest" ]; then
|
||||||
VERSION="latest"
|
VERSION="latest"
|
||||||
@@ -105,7 +107,7 @@ jobs:
|
|||||||
echo "Deploying version $VERSION to ${{ inputs.environment }}..."
|
echo "Deploying version $VERSION to ${{ inputs.environment }}..."
|
||||||
echo "Log level: ${{ inputs.logLevel }}"
|
echo "Log level: ${{ inputs.logLevel }}"
|
||||||
|
|
||||||
docker -H ${{ secrets.SWARM_MANAGER_HOST }} \
|
docker -H $SWARM_MANAGER_HOST \
|
||||||
stack deploy \
|
stack deploy \
|
||||||
--with-registry-auth \
|
--with-registry-auth \
|
||||||
-c docker-compose.staging.yaml \
|
-c docker-compose.staging.yaml \
|
||||||
|
Reference in New Issue
Block a user