Skip to content

Commit 560223c

Browse files
committed
feat: update ci
1 parent 6fa6167 commit 560223c

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

.github/workflows/release-please.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ permissions: write-all
1010
env:
1111
DOCKER_PATH: ./docker
1212
DOCKER_IMAGE: 36node/mongodb-backup
13-
HARBOR_REGISTRY: harbor.36node.com
1413
HARBOR_REPO: common
1514
CHART_NAME: mongodb-backup-chart
1615

@@ -25,7 +24,7 @@ jobs:
2524
release_created: ${{ steps.release.outputs.release_created }}
2625
tag_name: ${{ steps.release.outputs.tag_name }}
2726
steps:
28-
- uses: google-github-actions/release-please-action@v4
27+
- uses: googleapis/release-please-action@v4
2928
id: release
3029
with:
3130
release-type: simple
@@ -40,7 +39,7 @@ jobs:
4039
- name: Get version tag
4140
id: get_tag
4241
# needs.release-please.outputs.tag_name = v1.0.0
43-
run: echo ::set-output name=VERSION::$(echo "${{ needs.release-please.outputs.tag_name }}" | cut -c 2-)
42+
run: echo "VERSION=$(echo "${{ needs.release-please.outputs.tag_name }}" | cut -c 2-)" >> $GITHUB_OUTPUT
4443
- name: Docker meta
4544
id: meta
4645
uses: docker/metadata-action@v5
@@ -69,13 +68,12 @@ jobs:
6968
tags: ${{ steps.meta.outputs.tags }}
7069
labels: ${{ steps.meta.outputs.labels }}
7170
- name: Chart package and push
72-
uses: appany/helm-oci-chart-releaser@v0.3.0
71+
uses: appany/helm-oci-chart-releaser@v0.5.0
7372
with:
7473
name: ${{ env.CHART_NAME }}
7574
repository: ${{ env.HARBOR_REPO }}
76-
# v1.0.0 -> 1.0.0
77-
tag: $(echo "${{ steps.get_tag.outputs.VERSION }}" | sed 's/v\([0-9.]*\).*/\1/')
75+
tag: ${{ steps.get_tag.outputs.VERSION }}
7876
path: helm-chart
79-
registry: ${{ env.HARBOR_REGISTRY }}
77+
registry: ${{ secrets.HARBOR_DOMAIN }}
8078
registry_username: "${{ secrets.HARBOR_USERNAME }}"
8179
registry_password: "${{ secrets.HARBOR_PASSWORD }}"

helm-chart/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 1.3.4
18+
version: 1.5.0
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
2323
# It is recommended to use it with quotes.
24-
appVersion: "1.3.4"
24+
appVersion: "1.5.0"

0 commit comments

Comments
 (0)