File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 version : ${{ steps.version.outputs.version }}
1616 major : ${{ steps.version.outputs.major }}
1717 minor : ${{ steps.version.outputs.minor }}
18+ url : ${{ steps.version.outputs.url }}
1819 steps :
1920 - id : version
2021 run : |
2526 fi
2627 MAJOR="$(echo "${VERSION}" | cut -d. -f1)"
2728 MINOR="$(echo "${VERSION}" | cut -d. -f2)"
29+ URL=https://github.com/invoiceninja/invoiceninja/releases/download/v${VERSION}/invoiceninja.tar.gz
2830
2931 # Debug output
3032 echo "Current version: ${VERSION}"
3335 echo "version=${VERSION}" >> $GITHUB_OUTPUT
3436 echo "major=${MAJOR}" >> $GITHUB_OUTPUT
3537 echo "minor=${MINOR}" >> $GITHUB_OUTPUT
38+ echo "url=${URL}" >> $GITHUB_OUTPUT
3639
3740 build :
3841 runs-on : ${{ startsWith(matrix.platform, 'linux/arm') && 'ubuntu-24.04-arm' || 'ubuntu-latest' }}
7578 uses : docker/build-push-action@v6
7679 with :
7780 context : octane
78- build-args : INVOICENINJA_VERSION =${{ needs.version.outputs.version }}
81+ build-args : URL =${{ needs.version.outputs.url }}
7982 platforms : ${{ matrix.platform }}
8083 labels : ${{ steps.meta.outputs.labels }}
8184 tags : ${{ env.REGISTRY_IMAGE }}
Original file line number Diff line number Diff line change @@ -4,7 +4,9 @@ ARG DEBIAN_VERSION=trixie
44
55FROM dunglas/frankenphp:${FRANKENPHP_VERSION}-php${PHP_VERSION}-${DEBIAN_VERSION} AS prepare-app
66
7- ADD https://github.com/invoiceninja/invoiceninja/releases/latest/download/invoiceninja.tar.gz /tmp/invoiceninja.tar.gz
7+ ARG URL=https://github.com/invoiceninja/invoiceninja/releases/latest/download/invoiceninja.tar.gz
8+
9+ ADD ${URL} /tmp/invoiceninja.tar.gz
810
911RUN tar -xf /tmp/invoiceninja.tar.gz \
1012 && ln -s ./resources/views/react/index.blade.php ./public/index.html \
You can’t perform that action at this time.
0 commit comments