2121 run : |
2222 echo "BUILD_PROJ=omegasync" >> $GITHUB_ENV
2323
24- # - name: Extract branch name
25- # run: |
26- # BRANCH_NAME=$(echo "${{ github.ref }}" | sed 's|refs/heads/||')
27- # echo "Building release version $BRANCH_NAME"
28- # echo "BUILD_BRANCH=$BRANCH_NAME" >> $GITHUB_ENV
29- # id: extract_branch
30-
3124 - name : Get Tag Version
3225 run : |
3326 IMAGE_TAG=${GITHUB_REF#refs/tags/}
5144 docker-
5245
5346 - name : Build and push
54- # if: github.ref == 'refs/heads/main'
5547 uses : docker/build-push-action@v6
5648 with :
5749 context : .
@@ -60,25 +52,14 @@ jobs:
6052 tags : |
6153 ghcr.io/uvarc/${{ env.BUILD_PROJ }}:latest
6254 ghcr.io/uvarc/${{ env.BUILD_PROJ }}:${{ env.IMAGE_TAG }}
63- # ghcr.io/uvarc/${{ env.BUILD_PROJ }}:${{ github.ref_name }}
6455
65- # - name: Build and push (Other Branches)
66- # if: github.ref != 'refs/heads/main'
67- # uses: docker/build-push-action@v6
68- # with:
69- # context: .
70- # file: ./docker/Dockerfile
71- # push: ${{ github.event_name != 'pull_request' }}
72- # tags: |
73- # ghcr.io/uvarc/${{ env.BUILD_PROJ }}:${{ github.ref_name }}
7456
7557 - name : Push Version to Repository
7658 uses : stefanzweifel/git-auto-commit-action@v5
7759 with :
78- commit_message : " [skip ci] Bump Version - ${{ env.IMAGE_TAG }}"
60+ commit_message : " [skip ci] Update Version to Helm - ${{ env.IMAGE_TAG }}"
7961 branch : main
8062 file_pattern : ' kubernetes/values.yaml'
8163 commit_user_name : GitHub Actions Bot
8264 commit_user_email : github@virginia.edu
83- commit_author : GitHub Actions <github@virginia.edu>
84- skip_fetch : true
65+ commit_author : GitHub Actions <github@virginia.edu>
0 commit comments