Skip to content

Commit

Permalink
helm: use git tag as chart version
Browse files Browse the repository at this point in the history
Special case is when nightly job is running. Because in nighly charts we
want to use nightly Operator image, suffix differentiate it from latest
build.
  • Loading branch information
zimnx committed Feb 15, 2021
1 parent de100d8 commit 489398a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ jobs:
- name: Determine promotion tag for scheduled job
if: ${{ github.event_name == 'schedule' }}
run: |
echo "IMAGE_TAG=nightly" | tee -a ${GITHUB_ENV}
IMAGE_TAG=nightly
echo "IMAGE_TAG=${IMAGE_TAG}" | tee -a ${GITHUB_ENV}
echo "HELM_CHART_VERSION_SUFFIX=-${IMAGE_TAG}" | tee -a ${GITHUB_ENV}
- name: Login to DockerHub
uses: docker/login-action@v1
with:
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ HELM_CHARTS ?=scylla-operator scylla-manager scylla
HELM_CHARTS_DIR ?=helm
HELM_LOCAL_REPO ?=$(HELM_CHARTS_DIR)/repo/$(HELM_CHANNEL)
HELM_APP_VERSION ?=$(IMAGE_TAG)
HELM_CHART_VERSION ?=$(GIT_TAG)-$(HELM_APP_VERSION)
HELM_CHART_VERSION_SUFFIX ?=
HELM_CHART_VERSION ?=$(GIT_TAG)$(HELM_CHART_VERSION_SUFFIX)
HELM_BUCKET ?=gs://scylla-operator-charts/$(HELM_CHANNEL)
HELM_REPOSITORY ?=https://scylla-operator-charts.storage.googleapis.com/$(HELM_CHANNEL)

Expand Down

0 comments on commit 489398a

Please sign in to comment.