tpre-python/.gitea/workflows/build-image.yaml
sangge-redmi 53ec2773ac
Some checks failed
Test CI / test speed (push) Successful in 19s
Test CI / build-and-push (push) Failing after 1m42s
update
2025-01-15 15:17:37 +08:00

40 lines
1.0 KiB
YAML

name: Build and Push Base Image
on:
push:
paths:
- "basedockerfile"
- ".gitea/workflows/build_image.yaml"
# schedule:
# - cron: "0 0 1 * *" # 每月1号00:00执行
env:
REGISTRY: git.mamahaha.work
IMAGE_NAME: tpre
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: https://git.mamahaha.work/actions/checkout@v4
- name: Set up Docker Buildx
uses: https://git.mamahaha.work/actions/setup-buildx-action@v3
- name: Login to Private Registry
uses: https://git.mamahaha.work/actions/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
- name: Build and push
uses: https://git.mamahaha.work/actions/build-push-action@v5
with:
context: .
file: basedockerfile
push: true
tags: |
${{ env.REGISTRY }}/sangge/${{ env.IMAGE_NAME }}:base