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