Skip to content

Commit

Permalink
⚙️ test release jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
petar-cvit committed Jan 11, 2024
1 parent 5da3af5 commit 4b8f83c
Showing 1 changed file with 41 additions and 25 deletions.
66 changes: 41 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4b8f83c

Please sign in to comment.