Compare commits
3 Commits
v3.6.8-nat
...
v3.7.1-nat
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
46f1b7ca22 | ||
|
|
c7d1bedf79 | ||
|
|
8dc0e1f9d7 |
@@ -21,9 +21,9 @@ env:
|
||||
# 构建 Job
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-22.04 # 如果host构建 :linux_amd64
|
||||
container:
|
||||
image: swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/catthehacker/ubuntu:act-latest
|
||||
runs-on: ubuntu-node24 # 如果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."
|
||||
@@ -104,16 +104,21 @@ jobs:
|
||||
|
||||
# 构建并上传镜像 TODO 直接用docker命令操作
|
||||
- name: Build and push Docker image
|
||||
uses: http://139.9.216.111:3000/bamanker/build-push-action@v4 # 获取上一步截取到的版本号,既 1.0.0
|
||||
# uses: http://139.9.216.111:3000/bamanker/build-push-action@v4 # 获取上一步截取到的版本号,既 1.0.0
|
||||
#只能这样接收
|
||||
env:
|
||||
TAG: ${{ steps.set_envar.outputs.tag }}
|
||||
with:
|
||||
context: .
|
||||
# platforms: linux/amd64
|
||||
file: Dockerfile
|
||||
push: true
|
||||
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ env.TAG }}
|
||||
run: |
|
||||
docker buildx build \
|
||||
-t ${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ env.TAG }} \
|
||||
--push \
|
||||
.
|
||||
# with:
|
||||
# context: .
|
||||
## platforms: linux/amd64
|
||||
# file: Dockerfile
|
||||
# push: true
|
||||
# tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ env.TAG }}
|
||||
|
||||
#发布到 k8s
|
||||
- name: Generate kubeconfig
|
||||
|
||||
Reference in New Issue
Block a user