-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
26 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters