Skip to content

Commit cac3c87

Browse files
committed
Update workflows to use 'main' instead of 'master'
1 parent ff2862a commit cac3c87

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
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
66
on:
77
push:
88
branches:
9-
- master
9+
- main
1010
jobs:
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
@@ -19,7 +19,7 @@ jobs:
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
@@ -30,7 +30,7 @@ jobs:
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

0 commit comments

Comments
 (0)