Skip to content

Commit 97c2a4c

Browse files
committed
url as argument
1 parent 7848cf0 commit 97c2a4c

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/publish-image-octane.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
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: |
@@ -25,6 +26,7 @@ jobs:
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}"
@@ -33,6 +35,7 @@ jobs:
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' }}
@@ -75,7 +78,7 @@ jobs:
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 }}

octane/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ ARG DEBIAN_VERSION=trixie
44

55
FROM 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

911
RUN tar -xf /tmp/invoiceninja.tar.gz \
1012
&& ln -s ./resources/views/react/index.blade.php ./public/index.html \

0 commit comments

Comments
 (0)