-
Notifications
You must be signed in to change notification settings - Fork 104
55 lines (45 loc) · 1.46 KB
/
release.yaml
File metadata and controls
55 lines (45 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Release Robusta
on:
release:
types: [published]
env:
RELEASE_VER : ${{ github.event.release.tag_name }}
jobs:
setup-build-publish-deploy:
name: Build images
runs-on: ubuntu-latest
permissions:
contents: 'read'
id-token: 'write'
steps:
- uses: actions/checkout@v4
- uses: google-github-actions/auth@v2
with:
project_id: 'genuine-flight-317411'
workload_identity_provider: 'projects/429189597230/locations/global/workloadIdentityPools/github/providers/robusta-repos' # prod
- name: Set up gcloud CLI
uses: google-github-actions/setup-gcloud@v2
with:
project_id: genuine-flight-317411
- name: Configure Docker Registry
run: gcloud auth configure-docker us-central1-docker.pkg.dev
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build and push Docker images
uses: docker/build-push-action@v2
with:
file: Dockerfile
context: .
platforms: linux/arm64,linux/amd64
push: true
tags: |
us-central1-docker.pkg.dev/genuine-flight-317411/devel/kubewatch:${{ env.RELEASE_VER }}
robustadev/kubewatch:${{ env.RELEASE_VER }}
- name: Upload helm chart
run: |
cd helm && ./upload_chart.sh