Add .gitea/workflows/build.yml
Some checks failed
Build and Push Docker Image / build (push) Failing after 2m44s
Some checks failed
Build and Push Docker Image / build (push) Failing after 2m44s
This commit is contained in:
35
.gitea/workflows/build.yml
Normal file
35
.gitea/workflows/build.yml
Normal file
@@ -0,0 +1,35 @@
|
||||
name: Build and Push Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master, main]
|
||||
schedule:
|
||||
# Rebuild daily to catch base image updates
|
||||
- cron: '0 4 * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Log in to Gitea Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.cesium.pw
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.GITEA_TOKEN }}
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: |
|
||||
git.cesium.pw/${{ gitea.repository }}:latest
|
||||
git.cesium.pw/${{ gitea.repository }}:${{ gitea.sha }}
|
||||
Reference in New Issue
Block a user