diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index beb7ea69..adfdbc3d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -85,5 +85,5 @@ jobs: commitish: main tag_name: ${{ github.event.inputs.version }} release_name: ${{ github.event.inputs.version }} - draft: true - prerelease: true + draft: false + prerelease: false diff --git a/.github/workflows/ctrl-ci.yml b/.github/workflows/ctrl-ci.yml deleted file mode 100644 index e897af3e..00000000 --- a/.github/workflows/ctrl-ci.yml +++ /dev/null @@ -1,76 +0,0 @@ -name: cyclops-ctrl-CI - -on: - push: - branches: - - main - paths: - - cyclops-ctrl/** - workflow_dispatch: - -permissions: - contents: write - -jobs: - cyclops-ctrl-CI: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Bump ctrl version in latest file - run: | - git config pull.rebase false - git config pull.rebase true - - git pull origin main - - LATEST_VERSION_FILE=$GITHUB_WORKSPACE/install/ctrl-latest.txt - - # get current version - VERSION=$(cat $LATEST_VERSION_FILE) - MAJOR=$(($(cut -d\. -f2 <<< $VERSION) + 1)) - - # bump - VERSION=v0.$MAJOR.0 - echo $VERSION > $LATEST_VERSION_FILE - - # update file - git config --global user.email "petar.cvitanovic@gmail.com" - git config --global user.name "petar-cvit" - - git add -A - git commit -m 'ci update cyclops ctrl to '$VERSION - git push origin HEAD:main - - - name: Login to DockerHub - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Build and push - run: | - LATEST_VERSION_FILE=$GITHUB_WORKSPACE/install/ctrl-latest.txt - - # get current version - VERSION=$(cat $LATEST_VERSION_FILE) - - docker build cyclops-ctrl -t petarcvit223/cyclops-ctrl:$VERSION - docker push petarcvit223/cyclops-ctrl:$VERSION - - - name: Update install manifest - run: | - LATEST_VERSION_FILE=$GITHUB_WORKSPACE/install/ctrl-latest.txt - INSTALL_YAML=$GITHUB_WORKSPACE/install/cyclops-install.yaml - - # get current version - VERSION=$(cat $LATEST_VERSION_FILE) - - sed -i 's/petarcvit223\/cyclops-ctrl\:.*/petarcvit223\/cyclops-ctrl\:'$VERSION'/' $INSTALL_YAML - - # update file - git config --global user.email "petar.cvitanovic@gmail.com" - git config --global user.name "petar-cvit" - git status - git add . - git commit -m 'ci update cyclops ctrl to '$VERSION - git push diff --git a/.github/workflows/ui-ci.yml b/.github/workflows/ui-ci.yml deleted file mode 100644 index be2f72e5..00000000 --- a/.github/workflows/ui-ci.yml +++ /dev/null @@ -1,67 +0,0 @@ -name: cyclops-ui-CI - -on: - push: - branches: - - main - paths: - - cyclops-ui/** - workflow_dispatch: - -permissions: - contents: write - -jobs: - cyclops-ui-CI: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Bump ui version in latest file - run: | - git config pull.rebase false - git config pull.rebase true - - git pull origin main - - LATEST_VERSION_FILE=$GITHUB_WORKSPACE/install/ui-latest.txt - # get current version - VERSION=$(cat $LATEST_VERSION_FILE) - MAJOR=$(($(cut -d\. -f2 <<< $VERSION) + 1)) - # bump - VERSION=v0.$MAJOR.0 - echo $VERSION > $LATEST_VERSION_FILE - # update file - git config --global user.email "petar.cvitanovic@gmail.com" - git config --global user.name "petar-cvit" - git add -A - git commit -m 'ci update cyclops ui to '$VERSION - git push origin HEAD:main - - - name: Login to DockerHub - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Build and push - run: | - LATEST_VERSION_FILE=$GITHUB_WORKSPACE/install/ui-latest.txt - # get current version - VERSION=$(cat $LATEST_VERSION_FILE) - - docker build cyclops-ui -t petarcvit223/cyclops-ui:$VERSION - docker push petarcvit223/cyclops-ui:$VERSION - - name: Update install manifest - run: | - LATEST_VERSION_FILE=$GITHUB_WORKSPACE/install/ui-latest.txt - INSTALL_YAML=$GITHUB_WORKSPACE/install/cyclops-install.yaml - # get current version - VERSION=$(cat $LATEST_VERSION_FILE) - sed -i 's/petarcvit223\/cyclops-ui\:.*/petarcvit223\/cyclops-ui\:'$VERSION'/' $INSTALL_YAML - # update file - git config --global user.email "petar.cvitanovic@gmail.com" - git config --global user.name "petar-cvit" - git status - git add . - git commit -m 'ci update cyclops ui to '$VERSION - git push diff --git a/.github/workflows/web.yaml b/.github/workflows/web.yaml index eed7439a..746b244a 100644 --- a/.github/workflows/web.yaml +++ b/.github/workflows/web.yaml @@ -1,4 +1,4 @@ -name: Deploy landing page to GitHub Pages +name: deploy landing page to GitHub Pages on: push: