This commit is contained in:
parent
111ceb87a3
commit
0683f18868
1 changed files with 34 additions and 0 deletions
34
.forgejo/workflows/docker.yml
Normal file
34
.forgejo/workflows/docker.yml
Normal file
|
@ -0,0 +1,34 @@
|
|||
name: Build and Push Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
schedule:
|
||||
# Run every Sunday at 00:00 UTC (adjust cron syntax as needed)
|
||||
- cron: "0 0 * * 0"
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Log in to Docker Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.k4li.de
|
||||
# username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.FORGEJO_ACCESSTOKEN }}
|
||||
|
||||
- name: Build and Push Docker Image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
platforms: linux/amd64
|
||||
push: true
|
||||
tags: |
|
||||
docker/caddy:latest
|
||||
docker/caddy:${{ github.sha }}
|
Loading…
Add table
Add a link
Reference in a new issue