Skip to content

Commit

Permalink
Merge pull request #272 from navikt/til-main-branch
Browse files Browse the repository at this point in the history
til-main-branch
  • Loading branch information
hakonph authored Aug 21, 2023
2 parents 2126f95 + f571dd0 commit 5cea707
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
test:
name: Run tests
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/master'
if: github.ref != 'refs/heads/main'
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -25,7 +25,7 @@ jobs:
build-and-push:
name: Build and push
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -51,7 +51,7 @@ jobs:
tags: ${{ env.IMAGE }}:${{ env.IMAGE_TAG }}
deploy-dev:
name: Deploy application to dev
if: github.ref == 'refs/heads/dev'
if: github.ref == 'refs/heads/main'
needs: build-and-push
runs-on: ubuntu-latest
steps:
Expand All @@ -66,8 +66,8 @@ jobs:
VAR: version=${{ env.IMAGE_TAG }}
deploy-prod:
name: Deploy application to prod
if: github.ref == 'refs/heads/master'
needs: build-and-push
if: github.ref == 'refs/heads/main'
needs: deploy-dev
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -88,6 +88,6 @@ jobs:
uses: softprops/action-gh-release@v1
with:
name: Release to prod
target_commitish: master
target_commitish: main
tag_name: release/prod@${{ env.IMAGE_TAG }}
prerelease: false

0 comments on commit 5cea707

Please sign in to comment.