now on the speedy machine?
All checks were successful
Build and Push to Forgejo Registry / checkout (push) Successful in 1m47s
All checks were successful
Build and Push to Forgejo Registry / checkout (push) Successful in 1m47s
This commit is contained in:
parent
ddb987be87
commit
ff50d5ffe4
1 changed files with 5 additions and 2 deletions
26
.forgejo/workflows/build-and-push.yml
Normal file
26
.forgejo/workflows/build-and-push.yml
Normal file
|
@ -0,0 +1,26 @@
|
|||
name: Build and Push to Forgejo Registry
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- '**/Dockerfile'
|
||||
- '**/build-and-push.yml'
|
||||
|
||||
jobs:
|
||||
checkout:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Login to Forgejo Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ vars.FORGEJO_URL }}
|
||||
username: ${{ vars.FORGEJO_USERNAME }}
|
||||
password: ${{ secrets.FORGEJO_PACKAGE_TOKEN }}
|
||||
- name: Build n Push
|
||||
run: |
|
||||
docker build -t git.k4li.de/docker/caddydb:latest .
|
||||
docker push git.k4li.de/docker/caddydb:latest
|
Loading…
Add table
Add a link
Reference in a new issue