Skip to content

Commit 91ef9ed

Browse files
Change default branch from master to main
Updated CI workflow to trigger on 'main' branch instead of 'master'.
1 parent f73d91c commit 91ef9ed

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- synchronize
99
push:
1010
branches:
11-
- master
11+
- main
1212

1313
permissions:
1414
id-token: write
@@ -55,7 +55,7 @@ jobs:
5555
path: /tmp/image.tar
5656

5757
docker-push:
58-
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
58+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
5959
needs: docker-build
6060
runs-on: ubuntu-latest
6161
steps:
@@ -92,3 +92,4 @@ jobs:
9292
docker image tag tmp-tag $AWS_REGISTRY/$AWS_REGISTRY_ALIAS/$AWS_REPO:latest
9393
docker push $AWS_REGISTRY/$AWS_REGISTRY_ALIAS/$AWS_REPO:$IMG_TAG
9494
docker push $AWS_REGISTRY/$AWS_REGISTRY_ALIAS/$AWS_REPO:latest
95+

0 commit comments

Comments
 (0)