Skip to content

Commit

Permalink
chore: upgrade the app version to be v0.0.15 in helm chart (#354)
Browse files Browse the repository at this point in the history
* chore: upgrade the app version to be v0.0.15 in helm chart

Signed-off-by: Rick <[email protected]>

* using a fixed version of [email protected]

Signed-off-by: Rick <[email protected]>

* change the setup-envtest version to be v0.17.3

Signed-off-by: Rick <[email protected]>

* do not run unit test for operator

it's good to move it to a new repository

Signed-off-by: GitHub <[email protected]>

* do not build operator image

Signed-off-by: GitHub <[email protected]>

---------

Signed-off-by: Rick <[email protected]>
Signed-off-by: GitHub <[email protected]>
  • Loading branch information
LinuxSuRen authored Apr 9, 2024
1 parent 6da7399 commit e32cd16
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 40 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
go-version: 1.20.x
- name: Unit Test
run: |
make test-all-backend test-operator
make test-all-backend
- name: Long Test
run: |
make testlong
Expand Down Expand Up @@ -78,8 +78,8 @@ jobs:
with:
version: latest
args: release --skip-publish --rm-dist --snapshot
- name: Operator
run: cd operator && make build
# - name: Operator
# run: cd operator && make build

BuildImage:
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -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 chmod u+x /usr/local/bin/docker-compose
make test-e2e
- name: Operator Image
run: cd operator && make docker-build
# - name: Operator Image
# run: cd operator && make docker-build

BuildEmbedUI:
runs-on: ubuntu-20.04
Expand Down
63 changes: 31 additions & 32 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,13 @@ jobs:
go-version: 1.20.x
- name: Unit Test
run: |
make test-all-backend test-operator
make test-all-backend
- name: Report
if: github.actor == 'linuxsuren'
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
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 operator/cover.out
bash <(curl -Ls https://coverage.codacy.com/get.sh) final
image:
Expand Down Expand Up @@ -97,36 +96,36 @@ jobs:
cache-to: type=gha,mode=max
build-args: VERSION=${{ steps.vars.outputs.tag }}

image-operator:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Docker buildx
uses: docker/setup-buildx-action@79abd3f86f79a9d68a23c75a09a9a85889262adf
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GH_PUBLISH_SECRETS }}
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ env.REGISTRY }}/linuxsuren/api-testing-operator
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@ac9327eae2b366085ac7f6a2d02df8aa8ead720a
with:
context: operator
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max
# image-operator:
# runs-on: ubuntu-20.04
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name: Setup Docker buildx
# uses: docker/setup-buildx-action@79abd3f86f79a9d68a23c75a09a9a85889262adf
# - name: Log into registry ${{ env.REGISTRY }}
# if: github.event_name != 'pull_request'
# uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
# with:
# registry: ${{ env.REGISTRY }}
# username: ${{ github.actor }}
# password: ${{ secrets.GH_PUBLISH_SECRETS }}
# - name: Extract Docker metadata
# id: meta
# uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
# with:
# images: ${{ env.REGISTRY }}/linuxsuren/api-testing-operator
# - name: Build and push Docker image
# id: build-and-push
# uses: docker/build-push-action@ac9327eae2b366085ac7f6a2d02df8aa8ead720a
# with:
# context: operator
# push: ${{ github.event_name != 'pull_request' }}
# tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}
# platforms: linux/amd64,linux/arm64
# cache-from: type=gha
# cache-to: type=gha,mode=max

image-dockerhub:
runs-on: ubuntu-20.04
Expand Down
4 changes: 2 additions & 2 deletions helm/api-testing/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ type: application
# 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.
# 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
# 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.
# It is recommended to use it with quotes.
appVersion: "v0.0.13"
appVersion: "v0.0.15"
2 changes: 1 addition & 1 deletion operator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ $(CONTROLLER_GEN): $(LOCALBIN)
.PHONY: envtest
envtest: $(ENVTEST) ## Download envtest-setup locally if necessary.
$(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
OPERATOR_SDK ?= $(LOCALBIN)/operator-sdk
Expand Down

0 comments on commit e32cd16

Please sign in to comment.