mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-02-02 10:59:18 +01:00
Test
This commit is contained in:
parent
b00da1c4f9
commit
e41876db2d
24
.github/workflows/build_images.yml
vendored
24
.github/workflows/build_images.yml
vendored
@ -119,7 +119,7 @@ jobs:
|
||||
flavor: |
|
||||
latest=auto
|
||||
|
||||
- name: Build and push
|
||||
- name: Build ${{ env.BASE_BUILD_NAME }}/${{ matrix.os }} and push
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
@ -156,7 +156,8 @@ jobs:
|
||||
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2.3.4
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2.3.4
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
@ -188,12 +189,12 @@ jobs:
|
||||
flavor: |
|
||||
latest=auto
|
||||
|
||||
- name: Download SHA256 tag
|
||||
- name: Download SHA256 tag build-base:${{ matrix.os }}
|
||||
uses: actions/download-artifact@v2.0.10
|
||||
with:
|
||||
name: build-base_${{ matrix.os }}
|
||||
|
||||
- name: Retrieve base build SHA256 tag
|
||||
- name: Retrieve build-base:${{ matrix.os }} SHA256 tag
|
||||
id: base_build
|
||||
run: |
|
||||
BASE_TAG=$(cat build-base_${{ matrix.os }})
|
||||
@ -202,7 +203,7 @@ jobs:
|
||||
echo ::set-output name=base_tag::${BASE_TAG}
|
||||
echo ::set-output name=base_build_image::${BUILD_BASE_IMAGE}
|
||||
|
||||
- name: Build and push
|
||||
- name: Build ${{ matrix.build }}/${{ matrix.os }} and push
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
@ -257,7 +258,12 @@ jobs:
|
||||
- name: Prepare Platform list
|
||||
id: platform
|
||||
run: |
|
||||
platform_list=$(jq -r '.os.${{ matrix.os }} | join(",")' "./build.xml")
|
||||
# Chromium on Alpine is available only on linux/amd64, linux/arm64 platforms
|
||||
if [ "${{ matrix.os }}" == "alpine" ] && [ "${{ matrix.build }}" == "web-service" ]; then
|
||||
platform_list="linux/amd64,linux/arm64"
|
||||
else
|
||||
platform_list=$(jq -r '.os.${{ matrix.os }} | join(",")' "./build.xml")
|
||||
fi
|
||||
|
||||
echo ::set-output name=list::$platform_list
|
||||
|
||||
@ -279,13 +285,13 @@ jobs:
|
||||
flavor: |
|
||||
latest=auto
|
||||
|
||||
- name: Download SHA256 tag
|
||||
- name: Download SHA256 tag for ${{ steps.build_base_image.outputs.build_base }}:${{ matrix.os }}
|
||||
uses: actions/download-artifact@v2.0.10
|
||||
if: ${{ matrix.build != 'snmptraps' }}
|
||||
with:
|
||||
name: ${{ steps.build_base_image.outputs.build_base }}_${{ matrix.os }}
|
||||
|
||||
- name: Retrieve base build SHA256 tag
|
||||
- name: Retrieve ${{ steps.build_base_image.outputs.build_base }}:${{ matrix.os }} SHA256 tag
|
||||
id: base_build
|
||||
if: ${{ matrix.build != 'snmptraps' }}
|
||||
run: |
|
||||
@ -295,7 +301,7 @@ jobs:
|
||||
echo ::set-output name=base_tag::${BASE_TAG}
|
||||
echo ::set-output name=base_build_image::${BUILD_BASE_IMAGE}
|
||||
|
||||
- name: Build and push
|
||||
- name: Build ${{ matrix.build }}/${{ matrix.os }} and push
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
|
Loading…
Reference in New Issue
Block a user