Try reusable workflows
Some checks failed
Build and Push Image / Build and push image (push) Has been cancelled
Some checks failed
Build and Push Image / Build and push image (push) Has been cancelled
This commit is contained in:
parent
691e4438ab
commit
7e4b1f0a21
@ -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
|
||||
|
20
.gitea/workflows/setup-builder.yaml
Normal file
20
.gitea/workflows/setup-builder.yaml
Normal file
@ -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 }}
|
Loading…
Reference in New Issue
Block a user