-
Notifications
You must be signed in to change notification settings - Fork 772
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
1 parent
5da3af5
commit 4b8f83c
Showing
1 changed file
with
41 additions
and
25 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 |
---|---|---|
|
@@ -45,28 +45,44 @@ jobs: | |
docker build cyclops-ctrl -t cyclopsui/cyclops-ctrl:$TAG | ||
docker push cyclopsui/cyclops-ctrl:$TAG | ||
# update manifest job needs to be refactored | ||
# update-install-manifest: | ||
# needs: | ||
# - build-UI | ||
# - build-controller | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - name: update install manifest | ||
# run: | | ||
# TAG=$(git describe --tags --abbrev=0) | ||
# INSTALL_YAML=$GITHUB_WORKSPACE/install/cyclops-install.yaml | ||
# | ||
# sed -i 's/cyclopsui\/cyclops-ctrl\:.*/cyclopsui\/cyclops-ctrl\:'$TAG'/' $INSTALL_YAML | ||
# sed -i 's/cyclopsui\/cyclops-ui\:.*/cyclopsui\/cyclops-ui\:'$TAG'/' $INSTALL_YAML | ||
# | ||
# # update file | ||
# git fetch origin main | ||
# git checkout main | ||
# git config --global user.email "[email protected]" | ||
# git config --global user.name "petar-cvit" | ||
# git status | ||
# git add $INSTALL_YAML | ||
# git commit -m '⚙️ update cyclops to '$TAG | ||
# git push origin HEAD:main | ||
update-install-manifest: | ||
needs: | ||
- build-UI | ||
- build-controller | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: update install manifest | ||
run: | | ||
TAG=${{ github.event.inputs.version }} | ||
INSTALL_YAML=$GITHUB_WORKSPACE/install/cyclops-install.yaml | ||
sed -i 's/cyclopsui\/cyclops-ctrl\:.*/cyclopsui\/cyclops-ctrl\:'$TAG'/' $INSTALL_YAML | ||
sed -i 's/cyclopsui\/cyclops-ui\:.*/cyclopsui\/cyclops-ui\:'$TAG'/' $INSTALL_YAML | ||
# update file | ||
git fetch origin main | ||
git checkout main | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "petar-cvit" | ||
git status | ||
git add $INSTALL_YAML | ||
git commit -m '⚙️ update cyclops to '$TAG | ||
git push origin HEAD:main | ||
release: | ||
needs: | ||
- update-install-manifest | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.event.inputs.version }} | ||
release_name: ${{ github.event.inputs.version }} | ||
draft: true | ||
prerelease: true |