File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1- # Runs when master branch is updated.
1+ # Runs when main branch is updated.
22# Creates docker image & publishes to docker packages
33# Uses ansible to setup & configure production
44# Executes a blue/green deployment of the latest code
5- name : Master Branch Build
5+ name : Main Branch Build
66on :
77 push :
88 branches :
9- - master
9+ - main
1010jobs :
1111 build :
1212 env :
13- IS_MASTER_BUILD : ${{ github.event_name == 'push' && github.ref == 'refs/heads/master ' }}
13+ IS_MAIN_BUILD : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main ' }}
1414 runs-on : ubuntu-latest
1515 steps :
1616 - uses : actions/checkout@v4
1919 distribution : temurin
2020 java-version : 21
2121 - name : Login to GitHub Container Registry
22- if : ${{ env.IS_MASTER_BUILD }}
22+ if : ${{ env.IS_MAIN_BUILD }}
2323 uses : docker/login-action@v1
2424 with :
2525 registry : ghcr.io
3030 env :
3131 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3232 - name : build and push docker containers
33- if : ${{ env.IS_MASTER_BUILD }}
33+ if : ${{ env.IS_MAIN_BUILD }}
3434 run : make docker-push
3535
3636# - uses: webfactory/ssh-agent@v0.9.0
You can’t perform that action at this time.
0 commit comments