Skip to content

Commit

Permalink
Merge pull request #1 from linuxserver-labs/actions-v6
Browse files Browse the repository at this point in the history
  • Loading branch information
thespad authored Apr 13, 2022
2 parents 9384a2f + c472484 commit 7cab343
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 6 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/call-baseimage-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Check for base image updates

on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'

jobs:
call-workflow:
uses: linuxserver-labs/docker-actions/.github/workflows/check-baseimage-update.yml@v6
with:
repo_owner: ${{ github.repository_owner }}
baseimage: "alpine"
basebranch: "3.15"
app_name: "webhook"
secrets:
repo_release_token: ${{ secrets.repo_release_token }}
8 changes: 6 additions & 2 deletions .github/workflows/call-build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@ name: Build Image On Release

on:
release:
types: [published]
types: [ published ]
pull_request:

jobs:
call-workflow:
uses: linuxserver-labs/docker-actions/.github/workflows/build-image.yml@v4
uses: linuxserver-labs/docker-actions/.github/workflows/build-image.yml@v6
with:
repo_owner: ${{ github.repository_owner }}
app_name: "webhook"
release_type: "github"
release_url: "https://api.github.com/repos/adnanh/webhook"
target-arch: "all"
secrets:
scarf_token: ${{ secrets.SCARF_TOKEN }}
3 changes: 1 addition & 2 deletions .github/workflows/call-check-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ on:

jobs:
call-workflow:
uses: linuxserver-labs/docker-actions/.github/workflows/check-and-release.yml@v4
uses: linuxserver-labs/docker-actions/.github/workflows/check-and-release.yml@v6
with:
repo_owner: ${{ github.repository_owner }}
app_name: "webhook"
release_type: "github"
release_url: "https://api.github.com/repos/adnanh/webhook"
release_name: "webhook"
secrets:
repo_release_token: ${{ secrets.repo_release_token }}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ Find us at:
[![GitHub Stars](https://img.shields.io/github/stars/linuxserver-labs/docker-webhook.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&logo=github)](https://github.com/linuxserver-labs/docker-webhook)
[![GitHub Release](https://img.shields.io/github/release/linuxserver-labs/docker-webhook.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&logo=github)](https://github.com/linuxserver-labs/docker-webhook/releases)
[![GitHub Package Repository](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=linuxserver.io&message=GitHub%20Package&logo=github)](https://github.com/linuxserver-labs/docker-webhook/packages)
[![ci](https://img.shields.io/github/workflow/status/linuxserver-labs/docker-webhook/Check%20for%20update%20and%20release.svg?labelColor=555555&logoColor=ffffff&style=for-the-badge&logo=github&label=Check%20For%20Upstream%20Updates)](https://github.com/linuxserver-labs/docker-webhook/actions/workflows/call-chck-and-release.yml)
[![ci](https://img.shields.io/github/workflow/status/linuxserver-labs/docker-webhook/Check%20for%20base%20image%20updates.svg?labelColor=555555&logoColor=ffffff&style=for-the-badge&logo=github&label=Check%20For%20Baseimage%20Updates)](https://github.com/linuxserver-labs/docker-webhook/actions/workflows/call-baseimage-update.yml)
[![ci](https://img.shields.io/github/workflow/status/linuxserver-labs/docker-webhook/Build%20Image%20On%20Release.svg?labelColor=555555&logoColor=ffffff&style=for-the-badge&logo=github&label=Build%20Image)](https://github.com/linuxserver-labs/docker-webhook/actions/workflows/call-build-image.yml)

[webhook](https://github.com/adnanh/webhook) is a lightweight configurable tool written in Go, that allows you to easily create HTTP endpoints (hooks) on your server, which you can use to execute configured commands. You can also pass data from the HTTP request (such as headers, payload or query variables) to your commands. webhook also allows you to specify rules which have to be satisfied in order for the hook to be triggered.

Expand Down
44 changes: 42 additions & 2 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,51 @@ target "image-local" {
output = ["type=docker"]
}

target "image-all" {
target "amd64" {
inherits = ["image"]
dockerfile = "Dockerfile"
platforms = [
"linux/amd64"
]
}

target "arm64v8" {
inherits = ["image"]
dockerfile = "Dockerfile.aarch64"
platforms = [
"linux/arm64"
]
}

target "arm32v7" {
inherits = ["image"]
dockerfile = "Dockerfile.armhf"
platforms = [
"linux/arm/v7"
]
}

target "64" {
inherits = ["image"]
platforms = [
"linux/amd64",
"linux/arm64"
]
}

target "arm" {
inherits = ["image"]
platforms = [
"linux/arm64",
"linux/arm/v7"
]
}
}

target "all" {
inherits = ["image"]
platforms = [
"linux/amd64",
"linux/arm64",
"linux/arm/v7"
]
}

0 comments on commit 7cab343

Please sign in to comment.