libingxiang 9a54c80169 ci
2026-06-12 09:23:32 +08:00

47 lines
1.8 KiB
YAML

name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on:
push:
branches:
- 'main**'
env:
BUILD: staging
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-24.04
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- run: echo "Gitea job id ${{ gitea.run_id }}."
- name: Check out repository code
uses: https://gitea.yantootech.com/neil/checkout@v4
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
cd ${{ gitea.workspace }}
- name: Login to Docker Hub
uses: https://gitea.yantootech.com/neil/login-action@v3
with:
registry: hub.kce.ksyun.com/yantoo/yantoo-repository
username: 2000102568
password: Ks2000102568
- name: Build and push
uses: https://gitea.yantootech.com/neil/build-push-action@v6
with:
push: true
tags: hub.kce.ksyun.com/yantoo/yantoo-repository/baidu-digital-human-app:${{ gitea.run_id }}
- name: Install
run: |
helm upgrade --install baidu-digital-human-app ./.gitea/charts \
--namespace digital-human-prod \
--create-namespace \
--set image.repository=hub.kce.ksyun.com/yantoo/yantoo-repository/baidu-digital-human-app \
--set image.tag=${{ gitea.run_id }}
- run: echo "🍏 This job's status is ${{ job.status }}."