Fix setting image during build
This commit is contained in:
3
.github/workflows/builder.yaml
vendored
3
.github/workflows/builder.yaml
vendored
@@ -81,6 +81,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if [[ "${{ steps.info.outputs.architectures }}" =~ ${{ matrix.arch }} ]]; then
|
if [[ "${{ steps.info.outputs.architectures }}" =~ ${{ matrix.arch }} ]]; then
|
||||||
echo "::set-output name=build_arch::true";
|
echo "::set-output name=build_arch::true";
|
||||||
|
echo "::set-output name=image::$(echo '${{ steps.info.outputs.image }}' | cut -d'/' -f3)";
|
||||||
if [[ -z "${{ github.head_ref }}" ]] && [[ "${{ github.event_name }}" == "push" ]]; then
|
if [[ -z "${{ github.head_ref }}" ]] && [[ "${{ github.event_name }}" == "push" ]]; then
|
||||||
echo "BUILD_ARGS=" >> $GITHUB_ENV;
|
echo "BUILD_ARGS=" >> $GITHUB_ENV;
|
||||||
fi
|
fi
|
||||||
@@ -105,6 +106,6 @@ jobs:
|
|||||||
${{ env.BUILD_ARGS }} \
|
${{ env.BUILD_ARGS }} \
|
||||||
--${{ matrix.arch }} \
|
--${{ matrix.arch }} \
|
||||||
--target /data/${{ matrix.addon }} \
|
--target /data/${{ matrix.addon }} \
|
||||||
--image "$(echo '${{ steps.info.outputs.image }}' | cut -d'/' -f3)" \
|
--image "${{ steps.check.outputs.image }}" \
|
||||||
--docker-hub "ghcr.io/${{ github.repository_owner }}" \
|
--docker-hub "ghcr.io/${{ github.repository_owner }}" \
|
||||||
--addon
|
--addon
|
||||||
|
|||||||
Reference in New Issue
Block a user