ci: update used image
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9m47s

This commit is contained in:
Zpekii
2026-01-23 21:11:41 +08:00
parent f857739e92
commit 4c1a905088

View File

@@ -4,14 +4,13 @@ on: [push]
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-ci
runs-on: gitea-runner
container:
image: ubuntu:ci
image: alpine:gitea-runner
volumes:
- data:/var/data
- deploy:/var/deploy
- /usr/bin/docker:/usr/bin/docker
- /usr/local/bin/kubectl:/usr/local/bin/kubectl
steps:
- run: echo "PATH=/var/data/zApps/go/bin:$PATH" >> $GITHUB_ENV
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
@@ -53,7 +52,7 @@ jobs:
- name: Push Docker image to local registry
run: |
docker push localhost:8180/go-example/go-example:${{ gitea.sha }}
- name: Update manifest and Push to Git
- name: Update manifest and Push to Git
run: |
# 使用 kustomize 或 sed 修改镜像版本
sed -i "s|image: .*:.*|image: localhost:8180/go-example/go-example:${{ gitea.sha }}|g" deployment.yaml