Skip to content
This repository was archived by the owner on Apr 28, 2024. It is now read-only.

Commit a3f5922

Browse files
committed
Use called workflow
1 parent c55d49a commit a3f5922

File tree

4 files changed

+56
-0
lines changed

4 files changed

+56
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Build Image On Release
2+
3+
on:
4+
release:
5+
types: [ published ]
6+
7+
jobs:
8+
call-workflow:
9+
uses: linuxserver-labs/docker-actions/.github/workflows/build-image.yml@v2
10+
with:
11+
repo_owner: ${{ github.repository_owner }}
12+
app_name: "invoiceninja"
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Check for update and release
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 * * * *'
7+
8+
jobs:
9+
call-workflow:
10+
uses: linuxserver-labs/docker-actions/.github/workflows/check-and-release.yml@v2
11+
with:
12+
repo_owner: ${{ github.repository_owner }}
13+
app_name: "invoiceninja"
14+
release_type: "script"
15+
secrets:
16+
repo_release_token: ${{ secrets.repo_release_token }}

docker-bake.hcl

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
target "docker-metadata-action" {}
2+
3+
group "default" {
4+
targets = ["image-local"]
5+
}
6+
7+
target "image" {
8+
inherits = ["docker-metadata-action"]
9+
}
10+
11+
target "image-local" {
12+
inherits = ["image"]
13+
output = ["type=docker"]
14+
}
15+
16+
target "image-all" {
17+
inherits = ["image"]
18+
platforms = [
19+
"linux/amd64",
20+
"linux/arm64",
21+
"linux/arm/v7"
22+
]
23+
}

get-version.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
3+
APP_VERSION=$(curl -s https://api.github.com/repos/invoiceninja/invoiceninja/releases | jq -rc 'limit(1;.[] | select( .target_commitish | match("v5-stable"))) .tag_name');
4+
5+
printf "%s" "${APP_VERSION}"

0 commit comments

Comments
 (0)