Add cli publish and rename publish docker flow name (#40)

* new makefiles, build automation
* Update main.yml
* add git branch to the bucket path
* Update main.yml
* no message
* no message
* fix yaml
* fix naming
* run only on main and develop

Co-authored-by: Alex Haiut <alex@up9.com>
This commit is contained in:
gadotroee
2021-05-10 15:44:37 +03:00
committed by GitHub
parent 2ea8b0dbde
commit a960022601
4 changed files with 67 additions and 31 deletions

19
.github/workflows/publish-cli.yml vendored Normal file
View File

@@ -0,0 +1,19 @@
name: public-cli
on:
push:
branches:
- 'develop'
- 'main'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@master
with:
service_account_key: ${{ secrets.GCR_JSON_KEY }}
export_default_credentials: true
- name: Build and Push CLI
run: make push-cli

View File

@@ -1,4 +1,4 @@
name: ci
name: publish-docker
on:
push:
branches:
@@ -23,8 +23,8 @@ jobs:
type=sha
type=raw,${{ github.sha }}
type=raw,latest
- name: Login to DockerHub
uses: docker/login-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
registry: gcr.io
username: _json_key
@@ -35,4 +35,5 @@ jobs:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
labels: ${{ steps.meta.outputs.labels }}