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
3ea8fb7c42
commit
5d339f2f6e
18
.github/workflows/images_build_windows.yml
vendored
18
.github/workflows/images_build_windows.yml
vendored
@ -96,23 +96,27 @@ jobs:
|
|||||||
- name: Build ${{ env.BASE_BUILD_NAME }}/${{ matrix.build }}-${{ matrix.os }} and push
|
- name: Build ${{ env.BASE_BUILD_NAME }}/${{ matrix.build }}-${{ matrix.os }} and push
|
||||||
id: docker_build
|
id: docker_build
|
||||||
run: |
|
run: |
|
||||||
$tags='${{ steps.meta.outputs.tags }}' -split "`r`n"
|
$tags='${{ steps.meta.outputs.tags }}'
|
||||||
echo $tags
|
$result_tags = ''
|
||||||
|
foreach ($line in $tags) {
|
||||||
|
$result_tags = $result_tags + '--tag ' + $line
|
||||||
|
}
|
||||||
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
|
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
|
||||||
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 }} $result_tags .\Dockerfiles\${{ env.BASE_BUILD_NAME }}\windows\
|
||||||
docker push image push --all-tags ${{ steps.meta.outputs.tags[0] }}
|
docker push image push --all-tags ${{ steps.meta.outputs.tags[0] }}
|
||||||
docker logout
|
docker logout
|
||||||
|
|
||||||
- name: Image digest
|
- name: Image digest
|
||||||
run: |
|
run: |
|
||||||
echo ${{ steps.docker_build.outputs.digest }}
|
$digest=$(docker inspect ${{ steps.meta.outputs.tags[0] }} --format "{{.Id}}")
|
||||||
echo "${{ steps.docker_build.outputs.digest }}" > ${{ env.BASE_BUILD_NAME }}_${{ matrix.os }}
|
echo $digest
|
||||||
|
echo "$digest" > ${{ env.BASE_BUILD_NAME }}_${{ matrix.os }}_${{ matrix.build }}
|
||||||
|
|
||||||
- name: Upload SHA256 tag
|
- name: Upload SHA256 tag
|
||||||
uses: actions/upload-artifact@v2.2.4
|
uses: actions/upload-artifact@v2.2.4
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BASE_BUILD_NAME }}_${{ matrix.os }}
|
name: ${{ env.BASE_BUILD_NAME }}_${{ matrix.os }}_${{ matrix.build }}
|
||||||
path: ${{ env.BASE_BUILD_NAME }}_${{ matrix.os }}
|
path: ${{ env.BASE_BUILD_NAME }}_${{ matrix.os }}_${{ matrix.build }}
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
build_base_database:
|
build_base_database:
|
||||||
|
Loading…
Reference in New Issue
Block a user