From e85d9dbdfa6bc4105809d6c2fb04bb6347d67027 Mon Sep 17 00:00:00 2001 From: Eric Junyuan Xie Date: Thu, 29 Oct 2020 18:31:02 +0800 Subject: [PATCH] Update to rc2 and add release iamge (#394) --- .github/workflows/tag-apiserver.yaml | 22 +++++++++++++++++++ .github/workflows/tag-fedlearner.yaml | 21 ++++++++++++++++++ .github/workflows/tag-operator.yaml | 22 +++++++++++++++++++ .github/workflows/tag-web-console.yaml | 21 ++++++++++++++++++ .../charts/fedlearner-apiserver/values.yaml | 2 +- .../charts/fedlearner-operator/values.yaml | 2 +- .../charts/fedlearner-web-console/values.yaml | 2 +- deploy/charts/fedlearner/values.yaml | 6 ++--- 8 files changed, 92 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/tag-apiserver.yaml create mode 100644 .github/workflows/tag-fedlearner.yaml create mode 100644 .github/workflows/tag-operator.yaml create mode 100644 .github/workflows/tag-web-console.yaml diff --git a/.github/workflows/tag-apiserver.yaml b/.github/workflows/tag-apiserver.yaml new file mode 100644 index 000000000..21b345276 --- /dev/null +++ b/.github/workflows/tag-apiserver.yaml @@ -0,0 +1,22 @@ +name: Tag Fedlearner APIServer + +on: + release: + types: [published] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set Short Commit Sha + id: vars + run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" + - uses: whoan/docker-build-with-cache-action@v5 + with: + username: fedlearner + password: "${{ secrets.DOCKER_REGISTRY }}" + image_name: fedlearner/fedlearner-apiserver + image_tag: ${{ github.event.release.tag_name }} + context: ./deploy/kubernetes_operator + build_extra_args: --build-arg=WHAT=cmd/apiserver/main.go diff --git a/.github/workflows/tag-fedlearner.yaml b/.github/workflows/tag-fedlearner.yaml new file mode 100644 index 000000000..f20b78766 --- /dev/null +++ b/.github/workflows/tag-fedlearner.yaml @@ -0,0 +1,21 @@ +name: Tag Fedlearner + +on: + release: + types: [published] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set Short Commit Sha + id: vars + run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" + - uses: whoan/docker-build-with-cache-action@v5 + with: + username: fedlearner + password: "${{ secrets.DOCKER_REGISTRY }}" + image_name: fedlearner + image_tag: ${{ github.event.release.tag_name }} + context: ./ diff --git a/.github/workflows/tag-operator.yaml b/.github/workflows/tag-operator.yaml new file mode 100644 index 000000000..521a7bce1 --- /dev/null +++ b/.github/workflows/tag-operator.yaml @@ -0,0 +1,22 @@ +name: Tag Kubernetes Operator + +on: + release: + types: [published] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set Short Commit Sha + id: vars + run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" + - uses: whoan/docker-build-with-cache-action@v5 + with: + username: fedlearner + password: "${{ secrets.DOCKER_REGISTRY }}" + image_name: fedlearner/fedlearner-operator + image_tag: ${{ github.event.release.tag_name }} + context: ./deploy/kubernetes_operator + build_extra_args: --build-arg=WHAT=cmd/operator/main.go diff --git a/.github/workflows/tag-web-console.yaml b/.github/workflows/tag-web-console.yaml new file mode 100644 index 000000000..94748d8da --- /dev/null +++ b/.github/workflows/tag-web-console.yaml @@ -0,0 +1,21 @@ +name: Tag Web Console + +on: + release: + types: [published] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set Short Commit Sha + id: vars + run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" + - uses: whoan/docker-build-with-cache-action@v5 + with: + context: ./web_console + image_name: fedlearner/fedlearner-web-console + image_tag: ${{ github.event.release.tag_name }} + username: fedlearner + password: "${{ secrets.DOCKER_REGISTRY }}" diff --git a/deploy/charts/fedlearner/charts/fedlearner-apiserver/values.yaml b/deploy/charts/fedlearner/charts/fedlearner-apiserver/values.yaml index 41f9e921e..715906720 100644 --- a/deploy/charts/fedlearner/charts/fedlearner-apiserver/values.yaml +++ b/deploy/charts/fedlearner/charts/fedlearner-apiserver/values.yaml @@ -6,7 +6,7 @@ replicaCount: 1 image: repository: fedlearner/fedlearner-apiserver - tag: "v1.5-rc1" + tag: "v1.5-rc2" pullPolicy: IfNotPresent diff --git a/deploy/charts/fedlearner/charts/fedlearner-operator/values.yaml b/deploy/charts/fedlearner/charts/fedlearner-operator/values.yaml index 49cd09577..0e3da62a6 100644 --- a/deploy/charts/fedlearner/charts/fedlearner-operator/values.yaml +++ b/deploy/charts/fedlearner/charts/fedlearner-operator/values.yaml @@ -6,7 +6,7 @@ replicaCount: 1 image: repository: fedlearner/fedlearner-operator - tag: "v1.5-rc1" + tag: "v1.5-rc2" pullPolicy: IfNotPresent imagePullSecrets: [] diff --git a/deploy/charts/fedlearner/charts/fedlearner-web-console/values.yaml b/deploy/charts/fedlearner/charts/fedlearner-web-console/values.yaml index 3759460ff..30e3b3b55 100644 --- a/deploy/charts/fedlearner/charts/fedlearner-web-console/values.yaml +++ b/deploy/charts/fedlearner/charts/fedlearner-web-console/values.yaml @@ -8,7 +8,7 @@ image: repository: fedlearner/fedlearner-web-console pullPolicy: IfNotPresent # Overrides the image tag whose default is the chart appVersion. - tag: "v1.5-rc1" + tag: "v1.5-rc2" imagePullSecrets: [] nameOverride: "" diff --git a/deploy/charts/fedlearner/values.yaml b/deploy/charts/fedlearner/values.yaml index 5707848b9..4614a6055 100644 --- a/deploy/charts/fedlearner/values.yaml +++ b/deploy/charts/fedlearner/values.yaml @@ -7,7 +7,7 @@ replicaCount: 1 fedlearner-operator: image: repository: fedlearner/fedlearner-operator - tag: "v1.5-rc1" + tag: "v1.5-rc2" pullPolicy: IfNotPresent ingress: @@ -18,13 +18,13 @@ fedlearner-operator: fedlearner-apiserver: image: repository: fedlearner/fedlearner-apiserver - tag: "v1.5-rc1" + tag: "v1.5-rc2" pullPolicy: IfNotPresent fedlearner-web-console: image: repository: fedlearner/fedlearner-web-console - tag: "v1.5-rc1" + tag: "v1.5-rc2" pullPolicy: IfNotPresent ingress: