Skip to content

Commit 7453774

Browse files
test
1 parent 52a4543 commit 7453774

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/build-deploy.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ jobs:
4646
release:
4747
name: Release Package
4848
needs: [test, lint]
49-
# if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
49+
#TODO make it back to main
50+
if: github.event_name == 'push' && (github.ref == 'refs/heads/move-github-actions' || startsWith(github.ref, 'refs/tags/'))
5051
runs-on: ubuntu-latest
5152
permissions:
5253
contents: write
@@ -72,7 +73,7 @@ jobs:
7273
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7374

7475
- name: Build and push Docker image
75-
if: steps.semantic.outputs.new_release_published == 'false'
76+
if: steps.semantic.outputs.new_release_published == 'true'
7677
id: push
7778
uses: docker/build-push-action@v5
7879
with:
@@ -82,12 +83,9 @@ jobs:
8283
tags: |
8384
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
8485
85-
- name: Helmify and Release Chart
86+
- name: helmify
8687
if: steps.semantic.outputs.new_release_published == 'true'
87-
env:
88-
IMG: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.semantic.outputs.new_release_version }}
89-
run: |
90-
make helm
88+
run: IMG=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.semantic.outputs.new_release_version }} make helm
9189

9290
- name: "Update Chart.yaml version and appVersion"
9391
if: steps.semantic.outputs.new_release_published == 'true'

0 commit comments

Comments
 (0)