Skip to content

Commit

Permalink
Update github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dragutin-nav committed Sep 3, 2024
1 parent 362a8b4 commit 8b9584a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-unleash-api-token.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ jobs:
deploy-prod:
name: Deploy unleash-apitoken to prod
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/flytte-til-gcp'
if: github.ref == 'refs/heads/master'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Deploy unleash-apitoken
uses: nais/deploy/actions/deploy@v2
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/flytte-til-gcp'
if: github.ref == 'refs/heads/master'
env:
CLUSTER: prod-gcp
RESOURCE: .nais/application/gcp/unleash-apitoken-prod.yaml
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/main-gcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
test:
name: Run tests
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/flytte-til-gcp'
if: github.ref != 'refs/heads/master'
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -32,7 +32,7 @@ jobs:
build-and-push:
name: Build and push
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/flytte-til-gcp'
if: github.ref == 'refs/heads/dev'
outputs:
image: ${{ steps.docker-build-push.outputs.image }}
steps:
Expand All @@ -59,7 +59,7 @@ jobs:

deploy-dev:
name: Deploy application to dev gcp
if: github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/flytte-til-gcp'
if: github.ref == 'refs/heads/dev'
needs: build-and-push
runs-on: ubuntu-latest
steps:
Expand All @@ -75,7 +75,7 @@ jobs:

deploy-prod:
name: Deploy application to prod gcp
if: github.ref == 'refs/heads/flytte-til-gcp'
if: github.ref == 'refs/heads/master'
needs: build-and-push
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 8b9584a

Please sign in to comment.