This commit is contained in:
Alexey Pustovalov 2021-09-14 16:14:38 +02:00
parent 8a39fcf7b4
commit 98c7b39287

View File

@ -33,7 +33,7 @@ jobs:
components: ${{ steps.components.outputs.list }} components: ${{ steps.components.outputs.list }}
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v2.3.4
with: with:
fetch-depth: 1 fetch-depth: 1
@ -85,7 +85,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v2.3.4
with: with:
fetch-depth: 1 fetch-depth: 1
@ -134,7 +134,7 @@ jobs:
echo ${{ steps.docker_build.outputs.digest }} echo ${{ steps.docker_build.outputs.digest }}
echo "${{ steps.docker_build.outputs.digest }}" > ${{ env.BASE_BUILD_NAME }}_${{ matrix.os }} echo "${{ steps.docker_build.outputs.digest }}" > ${{ env.BASE_BUILD_NAME }}_${{ matrix.os }}
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2.2.4
with: with:
name: ${{ env.BASE_BUILD_NAME }}_${{ matrix.os }} name: ${{ env.BASE_BUILD_NAME }}_${{ matrix.os }}
path: ${{ env.BASE_BUILD_NAME }}_${{ matrix.os }} path: ${{ env.BASE_BUILD_NAME }}_${{ matrix.os }}
@ -152,7 +152,7 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2.3.4
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v1 uses: docker/setup-qemu-action@v1
@ -184,7 +184,7 @@ jobs:
flavor: | flavor: |
latest=auto latest=auto
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v2.0.10
with: with:
name: build-base_${{ matrix.os }} name: build-base_${{ matrix.os }}
@ -213,7 +213,7 @@ jobs:
echo ${{ steps.docker_build.outputs.digest }} echo ${{ steps.docker_build.outputs.digest }}
echo "${{ steps.docker_build.outputs.digest }}" > ${{ matrix.build }}_${{ matrix.os }} echo "${{ steps.docker_build.outputs.digest }}" > ${{ matrix.build }}_${{ matrix.os }}
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2.2.4
with: with:
name: ${{ matrix.build }}_${{ matrix.os }} name: ${{ matrix.build }}_${{ matrix.os }}
path: ${{ matrix.build }}_${{ matrix.os }} path: ${{ matrix.build }}_${{ matrix.os }}
@ -231,7 +231,7 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2.3.4
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v1 uses: docker/setup-qemu-action@v1
@ -263,12 +263,14 @@ jobs:
flavor: | flavor: |
latest=auto latest=auto
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v2.0.10
if: ${{ matrix.build != "snmptraps" }}
with: with:
name: ${{ steps.build_base_image.outputs.build_base }}_${{ matrix.os }} name: ${{ steps.build_base_image.outputs.build_base }}_${{ matrix.os }}
- name: Retrieve base build SHA256 tag - name: Retrieve base build SHA256 tag
id: base_build id: base_build
if: ${{ matrix.build != "snmptraps" }}
run: | run: |
BASE_TAG=$(cat ${{ steps.build_base_image.outputs.build_base }}_${{ matrix.os }}) BASE_TAG=$(cat ${{ steps.build_base_image.outputs.build_base }}_${{ matrix.os }})
BUILD_BASE_IMAGE=${{ env.DOCKER_REPOSITORY }}/zabbix-${{ steps.build_base_image.outputs.build_base }}@${BASE_TAG} BUILD_BASE_IMAGE=${{ env.DOCKER_REPOSITORY }}/zabbix-${{ steps.build_base_image.outputs.build_base }}@${BASE_TAG}