1+ name : Release Robusta
2+
3+ on :
4+ release :
5+ types : [published]
6+ env :
7+ RELEASE_VER : ${{ github.event.release.tag_name }}
8+ jobs :
9+ setup-build-publish-deploy :
10+ name : Build images
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@v2
15+
16+ - name : Set up gcloud CLI
17+ uses :
google-github-actions/[email protected] 18+ with :
19+ service_account_key : ${{ secrets.GCP_SA_KEY }}
20+ project_id : genuine-flight-317411
21+ export_default_credentials : true
22+
23+ - name : Configure Docker
24+ run : |-
25+ gcloud auth configure-docker us-central1-docker.pkg.dev
26+
27+ - name : Verify gcloud configuration
28+ run : |-
29+ gcloud config get-value project
30+
31+ - name : Set up Docker Buildx
32+ uses : docker/setup-buildx-action@v1
33+
34+ - name : Build and push Docker images
35+ uses : docker/build-push-action@v2
36+ with :
37+ file : Dockerfile
38+ context : .
39+ platforms : linux/arm64,linux/amd64
40+ push : true
41+ tags : us-central1-docker.pkg.dev/genuine-flight-317411/devel/kubewatch:${{ env.RELEASE_VER }}
42+
43+ - name : Login to Docker Hub
44+ uses : docker/login-action@v1
45+ with :
46+ username : ${{ secrets.DOCKER_USERNAME }}
47+ password : ${{ secrets.DOCKER_PASSWORD }}
48+
49+ - name : Build and push Docker images Dockerhub
50+ uses : docker/build-push-action@v2
51+ with :
52+ file : Dockerfile
53+ context : .
54+ platforms : linux/arm64,linux/amd64
55+ push : true
56+ tags : robustadev/kubewatch:${{ env.RELEASE_VER }}
57+
58+ - name : Upload helm chart
59+ run : |
60+ cd helm && ./upload_chart.sh
0 commit comments