Updated build script

This commit is contained in:
Alexey Pustovalov 2021-10-08 15:30:12 +02:00
parent dd1e4dd5d8
commit bf59a55cd5

View File

@ -99,8 +99,10 @@ jobs:
$tags=$(echo "${{ steps.meta.outputs.tags}}" | jq --raw-input . | jq --slurp . | jq -r '. | map("""--tag=""" + .) | join(""" """)')
echo $tags
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
echo "docker build --file=.\Dockerfiles\${{ env.BASE_BUILD_NAME }}\windows\Dockerfile.${{ matrix.build }} $tags .\Dockerfiles\${{ env.BASE_BUILD_NAME }}\windows\"
docker build --file=.\Dockerfiles\${{ env.BASE_BUILD_NAME }}\windows\Dockerfile.${{ matrix.build }} $tags .\Dockerfiles\${{ env.BASE_BUILD_NAME }}\windows\
docker push image push --all-tags ${{ steps.meta.outputs.tags[0] }}
$main_tag=$(echo "${{ steps.meta.outputs.tags}}" | jq --raw-input . | jq --slurp . | jq -r '.[0]')
docker push image push --all-tags $main_tag
docker logout
- name: Image digest