update python version and add build job
All checks were successful
Disk Report Image / build-and-push-ddns (push) Successful in 22s
All checks were successful
Disk Report Image / build-and-push-ddns (push) Successful in 22s
This commit is contained in:
30
.gitea/workflows/disk_report.yaml
Normal file
30
.gitea/workflows/disk_report.yaml
Normal file
@@ -0,0 +1,30 @@
|
||||
name: Disk Report Image
|
||||
run-name: Build and Push the Disk Report Application Image
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- disk_report.py
|
||||
- .gitea/workflows/disk_report.yaml
|
||||
schedule:
|
||||
- cron: '@daily'
|
||||
jobs:
|
||||
build-and-push-ddns:
|
||||
runs-on: ubuntu-latest
|
||||
if: gitea.ref == 'refs/heads/main'
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
- name: Login to Gitea Registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: gitea.reeseapps.com
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
- name: Build and push Docker image
|
||||
uses: https://github.com/docker/build-push-action@v5
|
||||
with:
|
||||
context: ${{ gitea.workspace }}
|
||||
file: ${{ gitea.workspace }}/disk_report.Containerfile
|
||||
push: true
|
||||
tags: "gitea.reeseapps.com/services/disk_report:latest,gitea.reeseapps.com/services/disk_report:${{gitea.sha}}"
|
||||
no-cache: true
|
||||
Reference in New Issue
Block a user