mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-05-06 21:52:54 +08:00
fix: workflow push secrets (#17783)
This commit is contained in:
5
.github/workflows/docker_apigateway.yml
vendored
5
.github/workflows/docker_apigateway.yml
vendored
@@ -1,9 +1,7 @@
|
||||
name: Apigateway Docker Image
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- closed
|
||||
push:
|
||||
branches:
|
||||
- 'releases/**'
|
||||
- 'main'
|
||||
@@ -14,7 +12,6 @@ on:
|
||||
- 'pkg/mcclient/modules/**.go'
|
||||
jobs:
|
||||
build_apigateway:
|
||||
if: github.event.pull_request.merged == true
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
5
.github/workflows/docker_climc.yml
vendored
5
.github/workflows/docker_climc.yml
vendored
@@ -1,9 +1,7 @@
|
||||
name: Climc Docker Image
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- closed
|
||||
push:
|
||||
branches:
|
||||
- 'releases/**'
|
||||
- 'main'
|
||||
@@ -14,7 +12,6 @@ on:
|
||||
- 'vendor/yunion.io/x/structarg/**.go'
|
||||
jobs:
|
||||
build_climc:
|
||||
if: github.event.pull_request.merged == true
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
50
.github/workflows/docker_cloudmon.yml
vendored
Normal file
50
.github/workflows/docker_cloudmon.yml
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
name: Cloudmon Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'releases/**'
|
||||
- 'main'
|
||||
- 'master'
|
||||
paths:
|
||||
- 'pkg/cloudmon/**.go'
|
||||
- 'vendor/yunion.io/x/cloudmux/pkg/multicloud/loader/**.go'
|
||||
|
||||
jobs:
|
||||
build_webconsole:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 8
|
||||
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.18'
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Login to Aliyun Container Registry (ACR)
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: https://registry.cn-beijing.aliyuncs.com
|
||||
username: ${{ secrets.ACR_USERNAME }}
|
||||
password: ${{ secrets.ACR_PASSWORD }}
|
||||
|
||||
- name: Build And Push Docker Image
|
||||
shell: bash
|
||||
run: |
|
||||
set -o xtrace
|
||||
export GO111MODULE=on
|
||||
branch="${GITHUB_REF#refs/heads/}"
|
||||
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
|
||||
export VERSION="$branch-$timestamp-solo"
|
||||
export GOOS=linux
|
||||
export ARCH=all
|
||||
export REGISTRY=registry.cn-beijing.aliyuncs.com/yunion-dev
|
||||
make image cloudmon
|
||||
49
.github/workflows/docker_esxi_agent.yml
vendored
Normal file
49
.github/workflows/docker_esxi_agent.yml
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
name: Esxi Agent Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'releases/**'
|
||||
- 'main'
|
||||
- 'master'
|
||||
paths:
|
||||
- 'pkg/esxi/**.go'
|
||||
|
||||
jobs:
|
||||
build_webconsole:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 8
|
||||
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.18'
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Login to Aliyun Container Registry (ACR)
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: https://registry.cn-beijing.aliyuncs.com
|
||||
username: ${{ secrets.ACR_USERNAME }}
|
||||
password: ${{ secrets.ACR_PASSWORD }}
|
||||
|
||||
- name: Build And Push Docker Image
|
||||
shell: bash
|
||||
run: |
|
||||
set -o xtrace
|
||||
export GO111MODULE=on
|
||||
branch="${GITHUB_REF#refs/heads/}"
|
||||
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
|
||||
export VERSION="$branch-$timestamp-solo"
|
||||
export GOOS=linux
|
||||
export ARCH=all
|
||||
export REGISTRY=registry.cn-beijing.aliyuncs.com/yunion-dev
|
||||
make image esxi-agent
|
||||
5
.github/workflows/docker_glance.yml
vendored
5
.github/workflows/docker_glance.yml
vendored
@@ -1,9 +1,7 @@
|
||||
name: Glance Docker Image
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- closed
|
||||
push:
|
||||
branches:
|
||||
- 'releases/**'
|
||||
- 'main'
|
||||
@@ -15,7 +13,6 @@ on:
|
||||
- 'vendor/yunion.io/x/jsonutils/**.go'
|
||||
jobs:
|
||||
build_glance:
|
||||
if: github.event.pull_request.merged == true
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
5
.github/workflows/docker_host.yml
vendored
5
.github/workflows/docker_host.yml
vendored
@@ -1,9 +1,7 @@
|
||||
name: Host Docker Image
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- closed
|
||||
push:
|
||||
branches:
|
||||
- 'releases/**'
|
||||
- 'main'
|
||||
@@ -13,7 +11,6 @@ on:
|
||||
- 'pkg/apis/host/**.go'
|
||||
jobs:
|
||||
build_host:
|
||||
if: github.event.pull_request.merged == true
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
5
.github/workflows/docker_keystone.yml
vendored
5
.github/workflows/docker_keystone.yml
vendored
@@ -1,9 +1,7 @@
|
||||
name: Keystone Docker Image
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- closed
|
||||
push:
|
||||
branches:
|
||||
- 'releases/**'
|
||||
- 'main'
|
||||
@@ -15,7 +13,6 @@ on:
|
||||
- 'vendor/yunion.io/x/jsonutils/**.go'
|
||||
jobs:
|
||||
build_keystone:
|
||||
if: github.event.pull_request.merged == true
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
51
.github/workflows/docker_logger.yml
vendored
Normal file
51
.github/workflows/docker_logger.yml
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
name: Logger Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'releases/**'
|
||||
- 'main'
|
||||
- 'master'
|
||||
paths:
|
||||
- 'pkg/logger/**.go'
|
||||
- 'pkg/apis/logger/**.go'
|
||||
- 'vendor/yunion.io/x/sqlchemy/**.go'
|
||||
- 'vendor/yunion.io/x/jsonutils/**.go'
|
||||
jobs:
|
||||
build_webconsole:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 8
|
||||
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.18'
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Login to Aliyun Container Registry (ACR)
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: https://registry.cn-beijing.aliyuncs.com
|
||||
username: ${{ secrets.ACR_USERNAME }}
|
||||
password: ${{ secrets.ACR_PASSWORD }}
|
||||
|
||||
- name: Build And Push Docker Image
|
||||
shell: bash
|
||||
run: |
|
||||
set -o xtrace
|
||||
export GO111MODULE=on
|
||||
branch="${GITHUB_REF#refs/heads/}"
|
||||
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
|
||||
export VERSION="$branch-$timestamp-solo"
|
||||
export GOOS=linux
|
||||
export ARCH=all
|
||||
export REGISTRY=registry.cn-beijing.aliyuncs.com/yunion-dev
|
||||
make image logger
|
||||
5
.github/workflows/docker_notify.yml
vendored
5
.github/workflows/docker_notify.yml
vendored
@@ -1,9 +1,7 @@
|
||||
name: Notify Docker Image
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- closed
|
||||
push:
|
||||
branches:
|
||||
- 'releases/**'
|
||||
- 'main'
|
||||
@@ -15,7 +13,6 @@ on:
|
||||
- 'vendor/yunion.io/x/jsonutils/**.go'
|
||||
jobs:
|
||||
build_notify:
|
||||
if: github.event.pull_request.merged == true
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
5
.github/workflows/docker_region.yml
vendored
5
.github/workflows/docker_region.yml
vendored
@@ -1,9 +1,7 @@
|
||||
name: Region Docker Image
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- closed
|
||||
push:
|
||||
branches:
|
||||
- 'releases/**'
|
||||
- 'main'
|
||||
@@ -16,7 +14,6 @@ on:
|
||||
- 'vendor/yunion.io/x/jsonutils/**.go'
|
||||
jobs:
|
||||
build_region:
|
||||
if: github.event.pull_request.merged == true
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
50
.github/workflows/docker_scheduler.yml
vendored
Normal file
50
.github/workflows/docker_scheduler.yml
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
name: Scheduler Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'releases/**'
|
||||
- 'main'
|
||||
- 'master'
|
||||
paths:
|
||||
- 'pkg/scheduler/**.go'
|
||||
- 'pkg/apis/scheduler/**.go'
|
||||
|
||||
jobs:
|
||||
build_webconsole:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 8
|
||||
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.18'
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Login to Aliyun Container Registry (ACR)
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: https://registry.cn-beijing.aliyuncs.com
|
||||
username: ${{ secrets.ACR_USERNAME }}
|
||||
password: ${{ secrets.ACR_PASSWORD }}
|
||||
|
||||
- name: Build And Push Docker Image
|
||||
shell: bash
|
||||
run: |
|
||||
set -o xtrace
|
||||
export GO111MODULE=on
|
||||
branch="${GITHUB_REF#refs/heads/}"
|
||||
timestamp=`TZ="Asia/Shanghai" date +"%Y%m%d%H%M%S"`
|
||||
export VERSION="$branch-$timestamp-solo"
|
||||
export GOOS=linux
|
||||
export ARCH=all
|
||||
export REGISTRY=registry.cn-beijing.aliyuncs.com/yunion-dev
|
||||
make image scheduler
|
||||
5
.github/workflows/docker_webconsole.yml
vendored
5
.github/workflows/docker_webconsole.yml
vendored
@@ -1,9 +1,7 @@
|
||||
name: Webconsole Docker Image
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- closed
|
||||
push:
|
||||
branches:
|
||||
- 'releases/**'
|
||||
- 'main'
|
||||
@@ -15,7 +13,6 @@ on:
|
||||
- 'vendor/yunion.io/x/jsonutils/**.go'
|
||||
jobs:
|
||||
build_webconsole:
|
||||
if: github.event.pull_request.merged == true
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
Reference in New Issue
Block a user