mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-02-16 18:00:52 +01:00
Updated build script
This commit is contained in:
parent
07d18b8dd9
commit
724269eafb
6
.github/workflows/images_build_windows.yml
vendored
6
.github/workflows/images_build_windows.yml
vendored
@ -97,10 +97,10 @@ jobs:
|
||||
- name: Build ${{ env.BASE_BUILD_NAME }}/${{ matrix.build }}-${{ matrix.os }} and push
|
||||
id: docker_build
|
||||
run: |
|
||||
$tags_array=$( "${{ steps.meta.outputs.tags}}".Split("`r`n") | Foreach-Object { "--tag=$_" } )
|
||||
$tags=$( $tags_array - Join ' ' )
|
||||
$tags_array=$( "${{ steps.meta.outputs.tags}}".Split("`r`n") | Foreach-Object { "$_" } )
|
||||
$tags=$( $tags_array -Join ',' )
|
||||
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\"
|
||||
echo "docker build --file=.\Dockerfiles\${{ env.BASE_BUILD_NAME }}\windows\Dockerfile.${{ matrix.build }} -t $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 $tags_array[0]
|
||||
docker logout
|
||||
|
Loading…
Reference in New Issue
Block a user