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