Skip to content

Commit

Permalink
add release and values
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Ignatev committed Jan 18, 2023
1 parent 2ffe087 commit 602a3c6
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 4 deletions.
33 changes: 31 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:
IMAGE: "${{ secrets.DOCKER_HUB_USERNAME }}/bpdispatcher"

jobs:
release:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -34,4 +34,33 @@ jobs:
with:
context: .
push: true
tags: ${{ env.IMAGE }}:${{github.ref_name}}
tags: ${{ env.IMAGE }}:${{github.ref_name}}

release:
needs: docker
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
with:
fetch-depth: 0

- name: Update Helm Chart Values
uses: brainfair/helm-set-image-tag-action@main
with:
tag_value: ${{ github.ref }}
values_files: charts/bpdispatcher/values.yaml
commit_branch: master

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v3

- name: Run chart-releaser
uses: helm/[email protected]
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
4 changes: 2 additions & 2 deletions charts/bpdispatcher/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
replicaCount: 1

image:
repository: nginx
repository: brainfair/bpdispatcher
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: ""
tag: "v0.0.1"

imagePullSecrets: []
nameOverride: ""
Expand Down

0 comments on commit 602a3c6

Please sign in to comment.