From 7947e522106710c4a422e617acc29b9f25d1f028 Mon Sep 17 00:00:00 2001 From: faiq Date: Wed, 11 Oct 2023 13:36:20 -0700 Subject: [PATCH] fix: adds release process here --- .github/workflows/release.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000000..f792911985 --- /dev/null +++ b/.github/workflows/release.yaml @@ -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 }}