wip
All checks were successful
Build and Push to Forgejo Registry / checkout (push) Successful in 2m39s
All checks were successful
Build and Push to Forgejo Registry / checkout (push) Successful in 2m39s
This commit is contained in:
parent
43c6a5615f
commit
a6ffa87fa2
3 changed files with 6 additions and 0 deletions
29
.forgejo/workflows/docker-build-and-push.yml
Normal file
29
.forgejo/workflows/docker-build-and-push.yml
Normal file
|
@ -0,0 +1,29 @@
|
|||
name: Build and Push to Forgejo Registry
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- '**/Dockerfile'
|
||||
# - '**/docker.yml'
|
||||
schedule:
|
||||
- cron: "0 0 * * 0" # Weekly at 00:00 UTC Sunday
|
||||
|
||||
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: git.k4li.de
|
||||
username: ${{ vars.FORGEJO_USERNAME }}
|
||||
password: ${{ vars.FORGEJO_PASSWORD }}
|
||||
|
||||
- name: Build n Push
|
||||
run: |
|
||||
docker build -t git.k4li.de/docker/caddy:latest .
|
||||
docker push git.k4li.de/docker/caddy:latest
|
Loading…
Add table
Add a link
Reference in a new issue