修复mount source: "overlay" 错误的问题 3
Some checks failed
Build Push and Deploy Image / build (push) Failing after 24s
Some checks failed
Build Push and Deploy Image / build (push) Failing after 24s
This commit is contained in:
@@ -21,18 +21,23 @@ env:
|
||||
# 构建 Job
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-node22 # 如果host构建 :linux_amd64
|
||||
runs-on: ubuntu-node22 # 如果host构建:linux_amd64
|
||||
# container:
|
||||
# image: swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/catthehacker/ubuntu:act-latest
|
||||
steps:
|
||||
|
||||
- name: Print system info 1
|
||||
run: echo " The job was automatically triggered by a ${{ gitea.event_name }} event."
|
||||
|
||||
- name: Print system info 2
|
||||
run: echo " This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
||||
|
||||
- name: Print system info 3
|
||||
run: echo " The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
||||
|
||||
- name: Print env
|
||||
run: env
|
||||
run: env && blkid
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
apt-get update &&
|
||||
@@ -40,7 +45,7 @@ jobs:
|
||||
apt-get install -y maven &&
|
||||
apt-get install -y sudo &&
|
||||
apt-get install -y iptables &&
|
||||
sudo blkid
|
||||
|
||||
- name: Set up Docker
|
||||
uses: http://139.9.216.111:3000/bamanker/setup-docker-action@v4
|
||||
with:
|
||||
@@ -82,8 +87,6 @@ jobs:
|
||||
run: |
|
||||
echo "The app version is $APP_TAG" && echo "tag=$APP_TAG" >> $GITHUB_OUTPUT &&
|
||||
echo "now workspace: ${{ github.workspace }}" &&
|
||||
docker version &&
|
||||
docker --help
|
||||
|
||||
# 为其他配置文件注入环境变量
|
||||
- name: Inject envVar
|
||||
@@ -128,6 +131,7 @@ jobs:
|
||||
ls &&
|
||||
docker build --file Dockerfile --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ env.TAG }} . &&
|
||||
docker image ls
|
||||
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ env.TAG }}
|
||||
# ${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ env.TAG }} --push.
|
||||
# uses: http://139.9.216.111:3000/bamanker/docker-build-push@v5
|
||||
# with:
|
||||
|
||||
Reference in New Issue
Block a user