ci: update used image
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9m47s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9m47s
This commit is contained in:
@@ -4,14 +4,13 @@ on: [push]
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Explore-Gitea-Actions:
|
Explore-Gitea-Actions:
|
||||||
runs-on: ubuntu-ci
|
runs-on: gitea-runner
|
||||||
container:
|
container:
|
||||||
image: ubuntu:ci
|
image: alpine:gitea-runner
|
||||||
volumes:
|
volumes:
|
||||||
- data:/var/data
|
- data:/var/data
|
||||||
- deploy:/var/deploy
|
- deploy:/var/deploy
|
||||||
- /usr/bin/docker:/usr/bin/docker
|
- /usr/bin/docker:/usr/bin/docker
|
||||||
- /usr/local/bin/kubectl:/usr/local/bin/kubectl
|
|
||||||
steps:
|
steps:
|
||||||
- run: echo "PATH=/var/data/zApps/go/bin:$PATH" >> $GITHUB_ENV
|
- run: echo "PATH=/var/data/zApps/go/bin:$PATH" >> $GITHUB_ENV
|
||||||
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
|
- 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
|
- name: Push Docker image to local registry
|
||||||
run: |
|
run: |
|
||||||
docker push localhost:8180/go-example/go-example:${{ gitea.sha }}
|
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: |
|
run: |
|
||||||
# 使用 kustomize 或 sed 修改镜像版本
|
# 使用 kustomize 或 sed 修改镜像版本
|
||||||
sed -i "s|image: .*:.*|image: localhost:8180/go-example/go-example:${{ gitea.sha }}|g" deployment.yaml
|
sed -i "s|image: .*:.*|image: localhost:8180/go-example/go-example:${{ gitea.sha }}|g" deployment.yaml
|
||||||
|
|||||||
Reference in New Issue
Block a user