Song367 978317e5fa
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 5s
first commit
2026-03-09 13:59:28 +08:00

52 lines
2.1 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/scriptflow-ai-app:${{ gitea.run_id }}
# - name: Docker Save And Tag
# run: |
# docker save 100.97.153.66:30005/creation-flow-app:${{ gitea.run_id }} -o creation-flow-app_${{ gitea.run_id }}.tar
# k3s ctr -n k8s.io images import creation-flow-app_${{ gitea.run_id }}.tar
# rm -f creation-flow-app_${{ gitea.run_id }}.tar
- name: Install
run: |
helm upgrade --install scriptflow-ai-app ./.gitea/charts \
--namespace scriptflow-ai \
--create-namespace \
--set image.repository=hub.kce.ksyun.com/yantoo/yantoo-repository/scriptflow-ai-app \
--set image.tag=${{ gitea.run_id }}
- run: echo "🍏 This job's status is ${{ job.status }}."