Skip to content

Commit

Permalink
Rename primary branch to main
Browse files Browse the repository at this point in the history
  • Loading branch information
henrist committed Jul 11, 2024
1 parent 026e493 commit 2f58c82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:

- name: Push nginx container
id: nginx_docker_build
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
uses: docker/build-push-action@v3
with:
context: .
Expand All @@ -53,7 +53,7 @@ jobs:

- name: Push fpm container
id: fpm_docker_build
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
uses: docker/build-push-action@v3
with:
context: .
Expand All @@ -62,7 +62,7 @@ jobs:
tags: blindernuka/billett-backend:latest

- name: Deploy
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
run: |
curl --fail -L -i -H "authorization: bearer $DEPLOYER_TOKEN" -H "content-type: application/json" -X POST https://deployer.foreningenbs.no/deploy -d '
{
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ jobs:
uses: docker/build-push-action@v3
with:
context: frontend
push: ${{ github.ref == 'refs/heads/master' }}
push: ${{ github.ref == 'refs/heads/main' }}
tags: blindernuka/billett-frontend:latest
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Deploy
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
run: |
curl --fail -L -i -H "authorization: bearer $DEPLOYER_TOKEN" -H "content-type: application/json" -X POST https://deployer.foreningenbs.no/deploy -d '
{
Expand Down

0 comments on commit 2f58c82

Please sign in to comment.