Preparation for multistage builds

This commit is contained in:
Alexey Pustovalov 2021-09-13 21:04:05 +02:00
parent 59097eb7dc
commit 43628f0e2f

View File

@ -21,6 +21,7 @@ defaults:
jobs: jobs:
build_base: build_base:
timeout-minutes: 70 timeout-minutes: 70
name: Build ${{ matrix.build }} base on ${{ matrix.os }}
env: env:
LATEST_BRANCH: "${{ github.event.repository.default_branch }}" LATEST_BRANCH: "${{ github.event.repository.default_branch }}"
DOCKER_REPOSITORY: "zabbix" DOCKER_REPOSITORY: "zabbix"
@ -152,7 +153,9 @@ jobs:
tags: ${{ steps.prepare_tags.outputs.image_tag_versions }} tags: ${{ steps.prepare_tags.outputs.image_tag_versions }}
- name: Image digest - name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }} run: |
echo ${{ steps.docker_build.outputs.digest }}
echo "${{ steps.docker_build.outputs.digest }}" > /tmp/${{ matrix.build }}_${{ matrix.os }}
build_base_database: build_base_database:
timeout-minutes: 70 timeout-minutes: 70
@ -165,9 +168,9 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
build: build:
- build-base-mysql - base-mysql
- build-base-pgsql - base-pgsql
- build-base-sqlite3 - base-sqlite3
os: os:
- alpine - alpine
- ubuntu - ubuntu
@ -281,6 +284,8 @@ jobs:
exit 1 exit 1
fi fi
cat /tmp/build-base_${{ matrix.os }}
echo ::set-output name=image_tag_versions::${TAGS} echo ::set-output name=image_tag_versions::${TAGS}
echo ::set-output name=image_name::${IMAGE_NAME} echo ::set-output name=image_name::${IMAGE_NAME}
echo ::set-output name=base_tag::${BASE_TAG} echo ::set-output name=base_tag::${BASE_TAG}