Skip to content

Commit 8282475

Browse files
committed
Migrering til team namespace
1 parent 8b02e32 commit 8282475

File tree

3 files changed

+18
-44
lines changed

3 files changed

+18
-44
lines changed

.github/workflows/main.yml

Lines changed: 14 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ jobs:
6666
PUBLISH_BRANCH: gh-pages
6767
PUBLISH_DIR: build
6868

69-
deploy-q0:
70-
name: Deploy application to Q0
69+
deploy-dev:
70+
name: Deploy application to dev
7171
if: github.ref == 'refs/heads/dev'
7272
needs: test-build-and-push
7373
runs-on: ubuntu-latest
@@ -79,23 +79,17 @@ jobs:
7979
env:
8080
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
8181
CLUSTER: dev-fss
82-
RESOURCE: nais-q.yaml
83-
VAR: version=${{ env.IMAGE_TAG }},namespace=q0
84-
deploy-q1:
85-
name: Deploy application to Q1
86-
if: github.ref == 'refs/heads/dev'
87-
needs: test-build-and-push
88-
runs-on: ubuntu-latest
89-
steps:
90-
- name: Checkout
91-
uses: actions/checkout@v1
92-
- name: Deploy application
93-
uses: nais/deploy/actions/deploy@v1
82+
RESOURCE: nais-dev.yaml
83+
VAR: version=${{ env.IMAGE_TAG }}
84+
- name: Create release
85+
uses: actions/create-release@v1
9486
env:
95-
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
96-
CLUSTER: dev-fss
97-
RESOURCE: nais-q.yaml
98-
VAR: version=${{ env.IMAGE_TAG }},namespace=q1
87+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
88+
with:
89+
tag_name: release/dev@${{ env.IMAGE_TAG }}
90+
release_name: Release to dev
91+
prerelease: true
92+
9993
deploy-prod:
10094
name: Deploy application to prod
10195
if: github.ref == 'refs/heads/master'
@@ -109,31 +103,13 @@ jobs:
109103
env:
110104
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
111105
CLUSTER: prod-fss
112-
RESOURCE: nais.yaml
106+
RESOURCE: nais-prod.yaml
113107
VAR: version=${{ env.IMAGE_TAG }}
114-
release-dev:
115-
name: Create dev release
116-
needs: [deploy-q0, deploy-q1]
117-
runs-on: ubuntu-latest
118-
steps:
119-
- name: Create release
120-
uses: actions/create-release@v1
121-
env:
122-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
123-
with:
124-
tag_name: release/dev@${{ env.IMAGE_TAG }}
125-
release_name: Release to dev
126-
prerelease: true
127-
release-prod:
128-
name: Create prod release
129-
needs: deploy-prod
130-
runs-on: ubuntu-latest
131-
steps:
132108
- name: Create release
133109
uses: actions/create-release@v1
134110
env:
135111
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
136112
with:
137113
tag_name: release/prod@${{ env.IMAGE_TAG }}
138114
release_name: Release to prod
139-
prerelease: false
115+
prerelease: false

nais-q.yaml renamed to nais-dev.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ apiVersion: "nais.io/v1alpha1"
22
kind: "Application"
33
metadata:
44
name: beslutteroversikt
5-
namespace: {{namespace}}
6-
cluster: dev-fss
5+
namespace: pto
76
labels:
87
team: pto
98
spec:
@@ -27,7 +26,7 @@ spec:
2726
cpu: "1"
2827
memory: 1Gi
2928
ingresses:
30-
- https://beslutteroversikt-{{namespace}}.nais.preprod.local
31-
- https://app-{{namespace}}.adeo.no/beslutteroversikt
29+
- https://beslutteroversikt-q1.nais.preprod.local
30+
- https://app-q1.adeo.no/beslutteroversikt
3231
envFrom:
3332
- configmap: pto-config

nais.yaml renamed to nais-prod.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ apiVersion: "nais.io/v1alpha1"
22
kind: "Application"
33
metadata:
44
name: beslutteroversikt
5-
namespace: default
6-
cluster: prod-fss
5+
namespace: pto
76
labels:
87
team: pto
98
spec:

0 commit comments

Comments
 (0)