Skip to content

Commit

Permalink
ci: add Release GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoshkin committed Feb 22, 2024
1 parent 04f8777 commit 739659d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Release
on:
push:
tags:
- "*-d2iq.*"

# Because variables are not exported, they are not visible by child processes, e.g. make
env:
registry: ghcr.io/mesosphere

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
4 changes: 2 additions & 2 deletions hack/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -47,7 +47,7 @@ SYNCER_IMAGE_NAME=
if [[ "$(git rev-parse --abbrev-ref HEAD)" =~ "master" ]]; then
VERSION="$(git log -1 --format=%h)"
else
VERSION="$(git describe --always 2>/dev/null)"
VERSION="$(git describe --tags --always 2>/dev/null)"
fi
GIT_COMMIT="$(git log -1 --format=%H)"
GCR_KEY_FILE="${GCR_KEY_FILE:-}"
Expand Down

0 comments on commit 739659d

Please sign in to comment.