mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-04-13 05:49:13 +02:00
Updated build script
This commit is contained in:
parent
0d2a096061
commit
44b4bc16de
10
.github/workflows/images_build_windows.yml
vendored
10
.github/workflows/images_build_windows.yml
vendored
@ -96,14 +96,10 @@ jobs:
|
||||
- name: Build ${{ env.BASE_BUILD_NAME }}/${{ matrix.build }}-${{ matrix.os }} and push
|
||||
id: docker_build
|
||||
run: |
|
||||
$tags='${{ steps.meta.outputs.tags }}'
|
||||
$result_tags = ''
|
||||
foreach ($line in $tags) {
|
||||
$result_tags = $result_tags + ' --tag=' + $line
|
||||
}
|
||||
echo $result_tags
|
||||
$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 }}
|
||||
docker build --file=.\Dockerfiles\${{ env.BASE_BUILD_NAME }}\windows\Dockerfile.${{ matrix.build }} $result_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] }}
|
||||
docker logout
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user