π update docker org #1
Workflow file for this run
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
name: cyclops-CI | |
on: | |
push: | |
tags: | |
- '*' | |
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=$(git describe --tags --abbrev=0) | |
docker build cyclops-ui -t cyclops-ui/cyclops-ui:$TAG | |
docker push cyclops-ui/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=$(git describe --tags --abbrev=0) | |
docker build cyclops-ctrl -t cyclops-ui/cyclops-ctrl:$TAG | |
docker push cyclops-ui/cyclops-ctrl:$TAG | |
update-install-manifest: | |
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/cyclops-ui\/cyclops-ctrl\:.*/cyclops-ui\/cyclops-ctrl\:'$TAG'/' $INSTALL_YAML | |
sed -i 's/cyclops-ui\/cyclops-ui\:.*/cyclops-ui\/cyclops-ui\:'$TAG'/' $INSTALL_YAML | |
# update file | |
git config --global user.email "[email protected]" | |
git config --global user.name "petar-cvit" | |
git status | |
git add . | |
git commit -m 'ci update cyclops ctrl to '$TAG | |
git push |