update pipeline
This commit is contained in:
parent
f5fcb2a71a
commit
97b20e5cee
4 changed files with 12 additions and 93 deletions
68
.github/workflows/build.yml
vendored
68
.github/workflows/build.yml
vendored
|
@ -1,68 +0,0 @@
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
schedule:
|
||||
- cron: "0 18 * * 1"
|
||||
|
||||
jobs:
|
||||
prepare:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
matrix: ${{ steps.set-matrix.outputs.matrix }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true
|
||||
- id: set-matrix
|
||||
run: "echo \"matrix=$(jq -cr '{image: [.[] | {name, context, dockerfile}]}' images.json)\" >> $GITHUB_OUTPUT"
|
||||
build_image:
|
||||
runs-on: ubuntu-latest
|
||||
needs: prepare
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix: ${{ fromJson(needs.prepare.outputs.matrix) }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true
|
||||
- name: Docker Meta
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
flavor: |
|
||||
latest=true
|
||||
images: |
|
||||
jakewalker/${{ matrix.image.name }}
|
||||
ghcr.io/jake-walker/${{ matrix.image.name }}
|
||||
tags: |
|
||||
type=schedule
|
||||
type=ref,event=branch
|
||||
type=sha
|
||||
- name: Setup QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
- name: Setup Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ vars.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: ${{ matrix.image.context }}
|
||||
file: ${{ matrix.image.dockerfile }}
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
17
.github/workflows/pre-commit.yml
vendored
17
.github/workflows/pre-commit.yml
vendored
|
@ -1,17 +0,0 @@
|
|||
name: pre-commit
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
pre-commit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v3
|
||||
- name: pre-commit
|
||||
uses: pre-commit/action@v3.0.1
|
|
@ -1,7 +1,8 @@
|
|||
# GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
steps:
|
||||
- directory: ./beeper_bridge-manager
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
failure: ignore
|
||||
image: woodpeckerci/plugin-kaniko
|
||||
name: publish beeper_bridge-manager
|
||||
settings:
|
||||
dockerfile: ./docker/Dockerfile
|
||||
|
@ -9,11 +10,12 @@ steps:
|
|||
from_secret: docker_token
|
||||
platforms: linux/amd64,linux/arm64
|
||||
registry: git.jakew.me
|
||||
repo: git.jakew.me/${CI_REPO_OWNER}/beeper_bridge-manager
|
||||
repo: ${CI_REPO_OWNER}/beeper_bridge-manager
|
||||
tags: latest
|
||||
username: ${CI_REPO_OWNER}
|
||||
- directory: ./matterbridge
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
failure: ignore
|
||||
image: woodpeckerci/plugin-kaniko
|
||||
name: publish matterbridge_whatsappmulti
|
||||
settings:
|
||||
dockerfile: ./Dockerfile_whatsappmulti
|
||||
|
@ -21,11 +23,12 @@ steps:
|
|||
from_secret: docker_token
|
||||
platforms: linux/amd64,linux/arm64
|
||||
registry: git.jakew.me
|
||||
repo: git.jakew.me/${CI_REPO_OWNER}/matterbridge_whatsappmulti
|
||||
repo: ${CI_REPO_OWNER}/matterbridge_whatsappmulti
|
||||
tags: latest
|
||||
username: ${CI_REPO_OWNER}
|
||||
- directory: ./custom-caddy
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
failure: ignore
|
||||
image: woodpeckerci/plugin-kaniko
|
||||
name: publish custom-caddy
|
||||
settings:
|
||||
dockerfile: ./Dockerfile
|
||||
|
@ -33,7 +36,7 @@ steps:
|
|||
from_secret: docker_token
|
||||
platforms: linux/amd64,linux/arm64
|
||||
registry: git.jakew.me
|
||||
repo: git.jakew.me/${CI_REPO_OWNER}/custom-caddy
|
||||
repo: ${CI_REPO_OWNER}/custom-caddy
|
||||
tags: latest
|
||||
username: ${CI_REPO_OWNER}
|
||||
when:
|
||||
|
|
|
@ -17,10 +17,11 @@ with open(".woodpecker/build.yaml", "w") as f:
|
|||
"steps": [
|
||||
{
|
||||
"name": f"publish {image['name']}",
|
||||
"image": "woodpeckerci/plugin-docker-buildx",
|
||||
"image": "woodpeckerci/plugin-kaniko",
|
||||
"failure": "ignore",
|
||||
"settings": {
|
||||
"repo": f"git.jakew.me/${{CI_REPO_OWNER}}/{image['name']}",
|
||||
"registry": "git.jakew.me",
|
||||
"repo": f"${{CI_REPO_OWNER}}/{image['name']}",
|
||||
"dockerfile": image["dockerfile"],
|
||||
"platforms": "linux/amd64,linux/arm64",
|
||||
"tags": "latest",
|
||||
|
|
Loading…
Reference in a new issue