Skip to content

Commit

Permalink
- Flere conditionals på draft PR.
Browse files Browse the repository at this point in the history
- Normaliserer format på RESOURCE pga. irriterende bug i IntelliJ sin validering av workflows.
  • Loading branch information
rfc3092 committed Apr 22, 2024
1 parent b5e02ad commit 1ab902f
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/alert-dolly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ jobs:
uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: dev-gcp
RESOURCE: .nais/alerting-dolly.yml
RESOURCE: ".nais/alerting-dolly.yml"
2 changes: 1 addition & 1 deletion .github/workflows/app.team-dolly-lokal-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ jobs:
- uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: dev-gcp
RESOURCE: .nais/team-dolly-lokal-app.yml
RESOURCE: ".nais/team-dolly-lokal-app.yml"
5 changes: 3 additions & 2 deletions .github/workflows/common.workflow.backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ on:
jobs:

start:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: "Logging"
Expand Down Expand Up @@ -126,7 +127,7 @@ jobs:
uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: ${{ inputs.cluster }}
RESOURCE: ${{ inputs.working-directory }}/${{ inputs.nais-manifest }}
RESOURCE: "${{ inputs.working-directory }}/${{ inputs.nais-manifest }}"
VAR: image=${{ needs.build.outputs.image }}

deploy-test:
Expand All @@ -141,5 +142,5 @@ jobs:
uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: ${{ inputs.cluster }}
RESOURCE: ${{ inputs.working-directory }}/config.test.yml
RESOURCE: "${{ inputs.working-directory }}/config.test.yml"
VAR: image=${{ needs.build.outputs.image }}
9 changes: 5 additions & 4 deletions .github/workflows/common.workflow.frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ on:
jobs:

start:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: "Logging"
Expand Down Expand Up @@ -160,7 +161,7 @@ jobs:
uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: ${{ inputs.cluster }}
RESOURCE: ${{ inputs.working-directory }}/config.yml
RESOURCE: "${{ inputs.working-directory }}/config.yml"
VAR: image=${{ needs.build.outputs.image }}

deploy-test:
Expand All @@ -175,7 +176,7 @@ jobs:
uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: ${{ inputs.cluster }}
RESOURCE: ${{ inputs.working-directory }}/config.test.yml
RESOURCE: "${{ inputs.working-directory }}/config.test.yml"
VAR: image=${{ needs.build.outputs.image }}

# Only used by dolly-frontend.
Expand All @@ -191,7 +192,7 @@ jobs:
uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: ${{ inputs.cluster }}
RESOURCE: ${{ inputs.working-directory }}/config.idporten.yml
RESOURCE: "${{ inputs.working-directory }}/config.idporten.yml"
VAR: image=${{ needs.build.outputs.image }}

# Only used by dolly-frontend.
Expand All @@ -207,5 +208,5 @@ jobs:
uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: ${{ inputs.cluster }}
RESOURCE: ${{ inputs.working-directory }}/config.unstable.yml
RESOURCE: "${{ inputs.working-directory }}/config.unstable.yml"
VAR: image=${{ needs.build.outputs.image }}
1 change: 1 addition & 0 deletions .github/workflows/common.workflow.libs.backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ on:
jobs:

start:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: "Logging"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/common.workflow.libs.frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
jobs:

start:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: "Logging"
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/idporten.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:

jobs:
deploy-idporten:
if: github.event.pull_request.draft == false
name: Deploy idporten
runs-on: ubuntu-latest
permissions:
Expand All @@ -19,4 +20,4 @@ jobs:
- uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: prod-gcp
RESOURCE: .nais/idporten.yml
RESOURCE: ".nais/idporten.yml"
3 changes: 2 additions & 1 deletion .github/workflows/kafka-topics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
jobs:
deploy-kafka-topics-dev:
name: Deploy to Aiven Dev
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -22,4 +23,4 @@ jobs:
env:
CLUSTER: dev-gcp
VAR: kafka-pool=nav-dev
RESOURCE: .nais/topics.yml
RESOURCE: ".nais/topics.yml"
2 changes: 1 addition & 1 deletion .github/workflows/maskinporten.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
- uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: prod-gcp
RESOURCE: .nais/maskinporten.yml
RESOURCE: ".nais/maskinporten.yml"
2 changes: 1 addition & 1 deletion .github/workflows/opensearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
- uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: dev-gcp
RESOURCE: .nais/opensearch.yml
RESOURCE: ".nais/opensearch.yml"
2 changes: 1 addition & 1 deletion .github/workflows/redis-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ jobs:
- uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: dev-gcp
RESOURCE: .nais/redis-dev.yml
RESOURCE: ".nais/redis-dev.yml"
2 changes: 1 addition & 1 deletion .github/workflows/redis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
- uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: dev-gcp
RESOURCE: .nais/redis.yml
RESOURCE: ".nais/redis.yml"

0 comments on commit 1ab902f

Please sign in to comment.