From b4d382feff901135705c7b20d5b9246ae5bb6094 Mon Sep 17 00:00:00 2001 From: Dimitri Koshkin Date: Thu, 22 Feb 2024 12:45:04 -0800 Subject: [PATCH] ci: add Release GHA --- .github/workflows/release.yaml | 22 ++++++++++++++++++++++ hack/release.sh | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) 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..6865ed70a6 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,22 @@ +name: Release +on: + push: + tags: + - "*-d2iq.*" + +jobs: + release: + name: Release + runs-on: + - ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - name: Login to container registry + uses: docker/login-action@v2 + with: + registry: ${{ env.registry }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build and push container image + run: | + make push-images \ No newline at end of file diff --git a/hack/release.sh b/hack/release.sh index 4a57241c53..dc350beff7 100755 --- a/hack/release.sh +++ b/hack/release.sh @@ -26,7 +26,7 @@ set -x DO_WINDOWS_BUILD=${DO_WINDOWS_BUILD_ENV:-true} # BASE_REPO is the root path of the image repository -readonly BASE_IMAGE_REPO=gcr.io/cloud-provider-vsphere +readonly BASE_IMAGE_REPO=ghcr.io/mesosphere/cloud-provider-vsphere # Release images readonly CSI_IMAGE_RELEASE=${BASE_IMAGE_REPO}/csi/release/driver