Try reusable workflows
Some checks failed
Build and Push Image / Build and push image (push) Has been cancelled

This commit is contained in:
Jan Gleytenhoover 2024-07-11 08:49:28 +02:00
parent 691e4438ab
commit 7e4b1f0a21
No known key found for this signature in database
GPG Key ID: F4516B3772197F4B
2 changed files with 21 additions and 12 deletions

@ -8,18 +8,7 @@ jobs:
container: catthehacker/ubuntu:act-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Registry
uses: docker/login-action@v3
with:
registry: git.kjan.de
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- uses: ./.gitea/workflows/setup-builder.yaml
- name: Build and push
uses: docker/build-push-action@v5

@ -0,0 +1,20 @@
on:
workflow_call
jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Registry
uses: docker/login-action@v3
with:
registry: git.kjan.de
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}