Skip to content

Commit

Permalink
fix: adds release process here
Browse files Browse the repository at this point in the history
  • Loading branch information
faiq committed Oct 11, 2023
1 parent e64cf3b commit 7947e52
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release Cloud Provider GCP

on:
workflow_dispatch:
push:
branch:
- 'faiq/add-build'

permissions:
packages: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: bazelbuild/setup-bazelisk@v2

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: build container images
run: |
bazel run //cmd/cloud-controller-manager:image
docker tag registry.k8s.io/cmd/cloud-controller-manager:image ghcr.io/mesosphere/cloud-controller-manager-gcp:${{ github.ref_name }}
docker push ghcr.io/mesosphere/cloud-controller-manager-gcp:${{ github.ref_name }}

0 comments on commit 7947e52

Please sign in to comment.