diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index ad6ef15..b117dcb 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -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