Skip to content

cyclops-CI

cyclops-CI #29

Workflow file for this run

name: cyclops-CI
on:
workflow_dispatch:
inputs:
version:
required: true
description: Version to be used as release name and image tagging
permissions:
contents: write
jobs:
build-UI:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
run: |
TAG=${{ github.event.inputs.version }}
docker build cyclops-ui -t cyclopsui/cyclops-ui:$TAG
docker push cyclopsui/cyclops-ui:$TAG
build-controller:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
run: |
TAG=${{ github.event.inputs.version }}
docker build cyclops-ctrl -t cyclopsui/cyclops-ctrl:$TAG
docker push cyclopsui/cyclops-ctrl:$TAG
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 }}
CURRENT_LATEST_TAG: ${{ git describe --tags --abbrev=0 }}

Check failure on line 84 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / cyclops-CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 84, Col: 31): Unrecognized named-value: 'git'. Located at position 1 within expression: git describe --tags --abbrev=0 .github/workflows/ci.yml (Line: 91, Col: 17): Unrecognized named-value: 'CURRENT_LATEST_TAG'. Located at position 1 within expression: CURRENT_LATEST_TAG
with:
commitish: main
tag_name: ${{ github.event.inputs.version }}
release_name: ${{ github.event.inputs.version }}
draft: false
prerelease: false
body: |
changes:
$(git log ${{ CURRENT_LATEST_TAG }}...${{ github.event.inputs.version }} --pretty=format:'- [`%h`](https://github.com/cyclops-ui/cyclops/commit/%H): %s by ([%an](https://github.com/%an))' -- .)
---
full changelog: `[${{ CURRENT_LATEST_TAG }}...${{ github.event.inputs.version }}]`(https://github.com/cyclops-ui/cyclops/compare/${{ CURRENT_LATEST_TAG }}...${{ github.event.inputs.version }})