Skip to content

Commit

Permalink
Rename default branch to main
Browse files Browse the repository at this point in the history
  • Loading branch information
henrist committed Oct 9, 2023
1 parent 3f90a0e commit c4343da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ jobs:
uses: docker/build-push-action@v5
with:
context: backend
push: ${{ github.ref == 'refs/heads/master' }}
push: ${{ github.ref == 'refs/heads/main' }}
tags: blindern/intern-backend: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
4 changes: 2 additions & 2 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ jobs:
uses: docker/build-push-action@v5
with:
context: frontend
push: ${{ github.ref == 'refs/heads/master' }}
push: ${{ github.ref == 'refs/heads/main' }}
tags: blindern/intern-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 c4343da

Please sign in to comment.