chore: upgrade the app version to be v0.0.15 in helm chart (#354)
* chore: upgrade the app version to be v0.0.15 in helm chart Signed-off-by: Rick <1450685+LinuxSuRen@users.noreply.github.com> * using a fixed version of controller-runtime@v0.14.1 Signed-off-by: Rick <1450685+LinuxSuRen@users.noreply.github.com> * change the setup-envtest version to be v0.17.3 Signed-off-by: Rick <1450685+LinuxSuRen@users.noreply.github.com> * do not run unit test for operator it's good to move it to a new repository Signed-off-by: GitHub <noreply@github.com> * do not build operator image Signed-off-by: GitHub <noreply@github.com> --------- Signed-off-by: Rick <1450685+LinuxSuRen@users.noreply.github.com> Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
parent
6da7399862
commit
e32cd16c03
|
@ -16,7 +16,7 @@ jobs:
|
||||||
go-version: 1.20.x
|
go-version: 1.20.x
|
||||||
- name: Unit Test
|
- name: Unit Test
|
||||||
run: |
|
run: |
|
||||||
make test-all-backend test-operator
|
make test-all-backend
|
||||||
- name: Long Test
|
- name: Long Test
|
||||||
run: |
|
run: |
|
||||||
make testlong
|
make testlong
|
||||||
|
@ -78,8 +78,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
version: latest
|
version: latest
|
||||||
args: release --skip-publish --rm-dist --snapshot
|
args: release --skip-publish --rm-dist --snapshot
|
||||||
- name: Operator
|
# - name: Operator
|
||||||
run: cd operator && make build
|
# run: cd operator && make build
|
||||||
|
|
||||||
BuildImage:
|
BuildImage:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
@ -116,8 +116,8 @@ jobs:
|
||||||
sudo curl -L https://github.com/docker/compose/releases/download/v2.23.0/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
|
sudo curl -L https://github.com/docker/compose/releases/download/v2.23.0/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
|
||||||
sudo chmod u+x /usr/local/bin/docker-compose
|
sudo chmod u+x /usr/local/bin/docker-compose
|
||||||
make test-e2e
|
make test-e2e
|
||||||
- name: Operator Image
|
# - name: Operator Image
|
||||||
run: cd operator && make docker-build
|
# run: cd operator && make docker-build
|
||||||
|
|
||||||
BuildEmbedUI:
|
BuildEmbedUI:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
|
@ -49,14 +49,13 @@ jobs:
|
||||||
go-version: 1.20.x
|
go-version: 1.20.x
|
||||||
- name: Unit Test
|
- name: Unit Test
|
||||||
run: |
|
run: |
|
||||||
make test-all-backend test-operator
|
make test-all-backend
|
||||||
- name: Report
|
- name: Report
|
||||||
if: github.actor == 'linuxsuren'
|
if: github.actor == 'linuxsuren'
|
||||||
env:
|
env:
|
||||||
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
bash <(curl -Ls https://coverage.codacy.com/get.sh) report --partial --force-coverage-parser go -r coverage.out
|
bash <(curl -Ls https://coverage.codacy.com/get.sh) report --partial --force-coverage-parser go -r coverage.out
|
||||||
bash <(curl -Ls https://coverage.codacy.com/get.sh) report --partial --force-coverage-parser go -r operator/cover.out
|
|
||||||
bash <(curl -Ls https://coverage.codacy.com/get.sh) final
|
bash <(curl -Ls https://coverage.codacy.com/get.sh) final
|
||||||
|
|
||||||
image:
|
image:
|
||||||
|
@ -97,36 +96,36 @@ jobs:
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
build-args: VERSION=${{ steps.vars.outputs.tag }}
|
build-args: VERSION=${{ steps.vars.outputs.tag }}
|
||||||
|
|
||||||
image-operator:
|
# image-operator:
|
||||||
runs-on: ubuntu-20.04
|
# runs-on: ubuntu-20.04
|
||||||
steps:
|
# steps:
|
||||||
- name: Checkout
|
# - name: Checkout
|
||||||
uses: actions/checkout@v4
|
# uses: actions/checkout@v4
|
||||||
- name: Setup Docker buildx
|
# - name: Setup Docker buildx
|
||||||
uses: docker/setup-buildx-action@79abd3f86f79a9d68a23c75a09a9a85889262adf
|
# uses: docker/setup-buildx-action@79abd3f86f79a9d68a23c75a09a9a85889262adf
|
||||||
- name: Log into registry ${{ env.REGISTRY }}
|
# - name: Log into registry ${{ env.REGISTRY }}
|
||||||
if: github.event_name != 'pull_request'
|
# if: github.event_name != 'pull_request'
|
||||||
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
|
# uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
|
||||||
with:
|
# with:
|
||||||
registry: ${{ env.REGISTRY }}
|
# registry: ${{ env.REGISTRY }}
|
||||||
username: ${{ github.actor }}
|
# username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GH_PUBLISH_SECRETS }}
|
# password: ${{ secrets.GH_PUBLISH_SECRETS }}
|
||||||
- name: Extract Docker metadata
|
# - name: Extract Docker metadata
|
||||||
id: meta
|
# id: meta
|
||||||
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
|
# uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
|
||||||
with:
|
# with:
|
||||||
images: ${{ env.REGISTRY }}/linuxsuren/api-testing-operator
|
# images: ${{ env.REGISTRY }}/linuxsuren/api-testing-operator
|
||||||
- name: Build and push Docker image
|
# - name: Build and push Docker image
|
||||||
id: build-and-push
|
# id: build-and-push
|
||||||
uses: docker/build-push-action@ac9327eae2b366085ac7f6a2d02df8aa8ead720a
|
# uses: docker/build-push-action@ac9327eae2b366085ac7f6a2d02df8aa8ead720a
|
||||||
with:
|
# with:
|
||||||
context: operator
|
# context: operator
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
# push: ${{ github.event_name != 'pull_request' }}
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
# tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
# labels: ${{ steps.meta.outputs.labels }}
|
||||||
platforms: linux/amd64,linux/arm64
|
# platforms: linux/amd64,linux/arm64
|
||||||
cache-from: type=gha
|
# cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
# cache-to: type=gha,mode=max
|
||||||
|
|
||||||
image-dockerhub:
|
image-dockerhub:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
|
@ -15,10 +15,10 @@ type: application
|
||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
# to the chart and its templates, including the app version.
|
# to the chart and its templates, including the app version.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||||
version: v0.0.3
|
version: v0.0.4
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# This is the version number of the application being deployed. This version number should be
|
||||||
# incremented each time you make changes to the application. Versions are not expected to
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
# follow Semantic Versioning. They should reflect the version the application is using.
|
# follow Semantic Versioning. They should reflect the version the application is using.
|
||||||
# It is recommended to use it with quotes.
|
# It is recommended to use it with quotes.
|
||||||
appVersion: "v0.0.13"
|
appVersion: "v0.0.15"
|
||||||
|
|
|
@ -209,7 +209,7 @@ $(CONTROLLER_GEN): $(LOCALBIN)
|
||||||
.PHONY: envtest
|
.PHONY: envtest
|
||||||
envtest: $(ENVTEST) ## Download envtest-setup locally if necessary.
|
envtest: $(ENVTEST) ## Download envtest-setup locally if necessary.
|
||||||
$(ENVTEST): $(LOCALBIN)
|
$(ENVTEST): $(LOCALBIN)
|
||||||
test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
|
test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@v0.17.3
|
||||||
|
|
||||||
.PHONY: operator-sdk
|
.PHONY: operator-sdk
|
||||||
OPERATOR_SDK ?= $(LOCALBIN)/operator-sdk
|
OPERATOR_SDK ?= $(LOCALBIN)/operator-sdk
|
||||||
|
|
Loading…
Reference in New Issue