54 это Санкт Петербург
All checks were successful
Deploy Production / Deploy to Staging (push) Has been skipped
All checks were successful
Deploy Production / Deploy to Staging (push) Has been skipped
This commit is contained in:
@@ -70,21 +70,27 @@ jobs:
|
||||
echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_OUTPUT
|
||||
echo "TAG_LAST_PUSHED=${PUSH_DATE}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Setup Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Build and Push Docker Image
|
||||
if: ${{ inputs.version == 'new' }}
|
||||
needs: docker-metadata
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: Dockerfile
|
||||
push: true
|
||||
tags: ${{ steps.docker-metadata.outputs.IMAGE_NAME }}:${{ steps.docker-metadata.outputs.IMAGE_TAG }}
|
||||
build-args: |
|
||||
BUILD_LDFLAGS="-w -s"
|
||||
CONFIG_FILE_PATH=".build/config/staging.yaml"
|
||||
env:
|
||||
IMAGE_NAME: ${{ steps.docker-metadata.outputs.IMAGE_NAME }}
|
||||
IMAGE_TAG: ${{ steps.docker-metadata.outputs.IMAGE_TAG }}
|
||||
CONFIG_FILE: .build/config/staging.yaml
|
||||
run: |
|
||||
docker build \
|
||||
--build-arg BUILD_LDFLAGS="-w -s" \
|
||||
--build-arg CONFIG_FILE_PATH=$CONFIG_FILE \
|
||||
-t $IMAGE_NAME:$IMAGE_TAG \
|
||||
-t $IMAGE_NAME:latest \
|
||||
.
|
||||
|
||||
docker tag $IMAGE_NAME:$IMAGE_TAG $IMAGE_NAME:latest
|
||||
|
||||
docker push $IMAGE_NAME:$IMAGE_TAG
|
||||
docker push $IMAGE_NAME:latest
|
||||
|
||||
echo "Pushed image $IMAGE_NAME:$IMAGE_TAG and :latest"
|
||||
|
||||
- name: Install dependencies
|
||||
id: install-dependencies
|
||||
|
Reference in New Issue
Block a user