Skip to content

Commit

Permalink
more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
yindia authored Jun 30, 2022
1 parent 22c043a commit 819bbd8
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 46 deletions.
63 changes: 18 additions & 45 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,54 +109,27 @@ jobs:
CURRENT_TAG=$(git tag --sort=-refname --points-at ${{ github.ref }} | head -n 1)
echo "::set-output name=currentTag::$CURRENT_TAG"
upgrade:
name: Upgrade Flyteconsole version
push_docker_image:
name: Push to Github Registry
runs-on: ubuntu-latest
needs:
- check_for_tag
steps:
- uses: actions/checkout@v2
with:
fetch-depth: "0"
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Update release
fetch-depth: '0'
- name: Autobump version
env:
TAG: ${{ needs.check_for_tag.outputs.currentTag }}
run: |
FLYTECONSOLE_VERSION=$(curl --silent "https://api.github.com/repos/flyteorg/flyteconsole/releases/latest" | jq -r .tag_name)
sed -e 's/"version": [^\"]*"/"version": "$FLYTECONSOLE_VERSION"/g' packages/zapp/console/package.json
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v3
VERSION=${TAG:1} make update_npmversion
- name: Push Docker Image to Github Registry
uses: whoan/docker-build-with-cache-action@v5
with:
token: ${{ secrets.FLYTE_BOT_PAT }}
commit-message: Update Flyteconsole version
committer: Flyte-Bot <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: true
branch: flyte-bot-update-flytecosnole
delete-branch: true
title: "Update Flyteconsole version"
body: |
Update Flyteconsole version
- Auto-generated by [flyte-bot]
labels: |
flyteconsole
team-reviewers: |
owners
maintainers
draft: false

push_docker_image:
name: Build & Push Flyteconsole Image
needs: [check_for_tag]
uses: flyteorg/flytetools/.github/workflows/publish.yml@master
with:
version: ${{ needs.check_for_tag.outputs.currentTag }}
dockerfile: Dockerfile
push: true
repository: ${{ github.repository }}
secrets:
FLYTE_BOT_PAT: ${{ secrets.FLYTE_BOT_PAT }}
FLYTE_BOT_USERNAME: ${{ secrets.FLYTE_BOT_USERNAME }}
username: "${{ secrets.FLYTE_BOT_USERNAME }}"
password: evalsocket
image_name: flyteorg/flyteconsole
image_tag: latest,${{ github.sha }},${{ needs.check_for_tag.outputs.currentTag }}
push_git_tag: true
push_image_and_stages: false
dockerfile: Dockerfile
registry: ghcr.io
build_extra_args: "--compress=true"
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,10 @@ test_unit_codecov:
.PHONY: generate_ssl
generate_ssl:
./script/generate_ssl.sh

PLACEHOLDER_NPM := \"version\": \"0.0.0-develop\"

.PHONY: update_npmversion
update_npmversion:
grep "$(PLACEHOLDER_NPM)" "packages/zapp/console/package.json"
sed -i "s/$(PLACEHOLDER_NPM)/\"version\": \"${VERSION}\"/g" "packages/zapp/console/package.json"
2 changes: 1 addition & 1 deletion packages/zapp/console/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@flyteconsole/client-app",
"version": "1.1.3",
"version": "0.0.0-develop",
"description": "The web UI for the Flyte platform",
"repository": {
"type": "git",
Expand Down

0 comments on commit 819bbd8

Please sign in to comment.