Skip to content

Commit

Permalink
actions: publish Helm Charts via CI in latest channel
Browse files Browse the repository at this point in the history
Action publishes images:
- v1.0.0-39-gffb19b8-nightly - daily on schedule, uses Operator nightly by default
- v1.0.0-39-gffb19b8-latest - on every master push, uses Operator latest by default

Prefix is taken from current branch state.
  • Loading branch information
zimnx committed Feb 12, 2021
1 parent 0dad47f commit c2635ec
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ jobs:
if: ${{ github.event_name != 'pull_request' }}
steps:
- uses: actions/checkout@v2
with:
# Helm Chart version needs to be semantic, we need tags in checked out repo to determine latest one.
fetch_depth: 0
- name: Determine promotion tag
if: ${{ github.event_name != 'schedule' }}
run: |
Expand All @@ -154,13 +157,21 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: actions/checkout@v2
# TODO: use the same image sha from images step - has to match what we used for e2e
- name: Publish latest image
- name: Publish container image
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
platforms: linux/amd64
push: true
tags: ${{ env.repo_ref }}:${{ env.IMAGE_TAG }}
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@master
with:
service_account_key: ${{ secrets.GCP_SA_KEY }}
- name: Publish Helm Chart
env:
HELM_CHANNEL: latest
HELM_APP_VERSION: ${{ env.IMAGE_TAG }}
run: make helm-publish

0 comments on commit c2635ec

Please sign in to comment.