Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add github action to update web and apiserver image tag #1

Merged
merged 2 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/gith.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@
name: Release Charts

on:
push:
pull_request:
branches:
- main
types: [closed]

jobs:
release:
# depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions
# 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
Expand Down
54 changes: 54 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
.vscode
.vagrant
.idea/
nacos-k8s
mysql-schema.sql
nacos.yaml
nacos-sdk-go
csi_values.yaml
nginx.yaml
nacos-bot
ask
ask
Binary file added charts/bioos-0.1.0.tgz
Binary file not shown.
2 changes: 2 additions & 0 deletions charts/bioos/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
14 changes: 14 additions & 0 deletions charts/index.yaml
Original file line number Diff line number Diff line change
@@ -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"
Loading