diff --git a/.github/workflows/gith.yml b/.github/workflows/gith.yml index c6a8452..818d7e4 100644 --- a/.github/workflows/gith.yml +++ b/.github/workflows/gith.yml @@ -2,9 +2,10 @@ name: Release Charts on: - push: + pull_request: branches: - main + types: [closed] jobs: release: @@ -12,6 +13,7 @@ jobs: # see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token permissions: contents: write + if: ${{ github.event.pull_request.merged }} runs-on: ubuntu-latest steps: - name: Checkout diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..408c311 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,54 @@ +name: Release + +on: + push: + tags: + - "v*" + +permissions: write-all + +jobs: + build: + name: Create Release + runs-on: ubuntu-latest + steps: + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.19 + check-latest: true + cache: true + - name: Checkout code + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Make changes to pull request + run: | + RELEASE_VERSION=${GITHUB_REF#refs/*/} + echo ${RELEASE_VERSION} + sed -i "s/web_name.*/web_name: web:${RELEASE_VERSION}/g" charts/bioos/values.yaml + sed -i "s/apiserver_name.*/apiserver_name: apiserver:${RELEASE_VERSION}/g" charts/bioos/values.yaml + + - name: Create Pull Request + id: cpr + uses: peter-evans/create-pull-request@v4 + with: + add-paths: | + *.yaml + token: ${{ secrets.REPOSITORYDISPATCH }} + commit-message: "feat: update bioos web and apiserver image tag to ${{ github.ref }}" + committer: GitHub + author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> + signoff: false + branch: feat/update-bioos-web-and-apiserver-image-tag-to-${{ github.ref }} + base: main + delete-branch: true + title: 'feat: update bioos web and apiserver image tag to ${{ github.ref }}' + body: | + update report + - update with *today's* date + - update bioos image web and apiserver tag to ${{ github.ref }} + labels: | + report + automated pr + draft: false diff --git a/.gitignore b/.gitignore index b1f32e1..ebcd202 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ .vscode .vagrant +.idea/ nacos-k8s mysql-schema.sql nacos.yaml @@ -7,4 +8,4 @@ nacos-sdk-go csi_values.yaml nginx.yaml nacos-bot -ask \ No newline at end of file +ask diff --git a/charts/bioos-0.1.0.tgz b/charts/bioos-0.1.0.tgz new file mode 100644 index 0000000..6a49c23 Binary files /dev/null and b/charts/bioos-0.1.0.tgz differ diff --git a/charts/bioos/values.yaml b/charts/bioos/values.yaml index 8661a6f..7110a79 100755 --- a/charts/bioos/values.yaml +++ b/charts/bioos/values.yaml @@ -89,8 +89,10 @@ storage: mountPath: /app/conf/fs wes: +# cromwell service address endpoint: http://180.184.43.61:8000 jupyterhub: +# jupyterhub service address endpoint: http://180.184.43.61/jupyterhub adminToken: c876b254956a433aaf02836605565af6 diff --git a/charts/index.yaml b/charts/index.yaml new file mode 100644 index 0000000..0570a91 --- /dev/null +++ b/charts/index.yaml @@ -0,0 +1,14 @@ +apiVersion: v1 +entries: + bioos: + - apiVersion: v2 + appVersion: v1 + created: "2023-10-26T11:07:53.790554+08:00" + description: BioOS UI 前端 + digest: 11b44895cb9c9efe3bd7693ef7de43c979b3841d684257b70aad78a106669a3f + name: bioos + type: application + urls: + - https://https:/bio-os.github.io/helm-charts/bioos-0.1.0.tgz + version: 0.1.0 +generated: "2023-10-26T11:07:53.7897+08:00"