Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MAIN-2312] Git action #90

Merged
merged 7 commits into from
Oct 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
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

steps:
- uses: actions/checkout@v2

- name: Set up gcloud CLI
uses: google-github-actions/setup-gcloud@v0.2.0
with:
service_account_key: ${{ secrets.GCP_SA_KEY }}
project_id: genuine-flight-317411
export_default_credentials: true

- name: Configure Docker
run: |-
gcloud auth configure-docker us-central1-docker.pkg.dev

- name: Verify gcloud configuration
run: |-
gcloud config get-value project

- 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 }}

- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Docker images Dockerhub
uses: docker/build-push-action@v2
with:
file: Dockerfile
context: .
platforms: linux/arm64,linux/amd64
push: true
tags: robustadev/kubewatch:${{ env.RELEASE_VER }}

- name: Upload helm chart
run: |
cd helm && ./upload_chart.sh
Loading