mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2024-12-16 19:40:46 +01:00
Preparation for multistage builds
This commit is contained in:
parent
eb293c1ebf
commit
fb845599d4
11
.github/workflows/build_images.yml
vendored
11
.github/workflows/build_images.yml
vendored
@ -155,14 +155,12 @@ jobs:
|
|||||||
- name: Image digest
|
- name: Image digest
|
||||||
run: |
|
run: |
|
||||||
echo ${{ steps.docker_build.outputs.digest }}
|
echo ${{ steps.docker_build.outputs.digest }}
|
||||||
pwd
|
echo "${{ steps.docker_build.outputs.digest }}" > ${{ matrix.build }}_${{ matrix.os }}
|
||||||
mkdir base_build/
|
|
||||||
echo "${{ steps.docker_build.outputs.digest }}" > base_build/${{ matrix.build }}_${{ matrix.os }}
|
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.build }}_${{ matrix.os }}
|
name: ${{ matrix.build }}_${{ matrix.os }}
|
||||||
path: base_build/${{ matrix.build }}_${{ matrix.os }}
|
path: ${{ matrix.build }}_${{ matrix.os }}
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
build_base_database:
|
build_base_database:
|
||||||
@ -279,8 +277,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.build }}_${{ matrix.os }}
|
name: base-build_${{ matrix.os }}
|
||||||
path: base_build
|
|
||||||
|
|
||||||
- name: Display structure of downloaded files
|
- name: Display structure of downloaded files
|
||||||
run: ls -R
|
run: ls -R
|
||||||
@ -300,7 +297,7 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
BASE_TAG=$(cat base_build/${{ matrix.build }}_${{ matrix.os }})
|
BASE_TAG=$(cat ${{ matrix.build }}_${{ 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}
|
||||||
|
Loading…
Reference in New Issue
Block a user