Skip to content

Commit

Permalink
Merge pull request #1 from mesosphere/faiq/add-build
Browse files Browse the repository at this point in the history
ci: adds a build process
  • Loading branch information
faiq authored Oct 11, 2023
2 parents 8fbe8d2 + 5e8928a commit c5753d5
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release Cloud Provider GCP

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

permissions:
packages: write
#${{ github.event.inputs.tag }}
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:TEST
docker push ghcr.io/mesosphere/cloud-controller-manager-gcp:TEST

0 comments on commit c5753d5

Please sign in to comment.