wip
This commit is contained in:
parent
a31fd40a61
commit
4c5d62f80f
1 changed files with 28 additions and 0 deletions
28
.forgejo/workflows/docker.yml
Normal file
28
.forgejo/workflows/docker.yml
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
name: Build and Push to Forgejo Registry
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
paths:
|
||||||
|
- "**/Dockerfile"
|
||||||
|
# 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
|
||||||
|
env:
|
||||||
|
DOCKER_HOST: /var/lib/docker.sock
|
||||||
|
run: |
|
||||||
|
echo "${{ secrets.FORGEJO_PASSWORD }}" | docker login git.k4li.de \
|
||||||
|
-u "${{ vars.FORGEJO_USERNAME }}" \
|
||||||
|
--password-stdin
|
||||||
|
- 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