Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit 640f96e

Browse files
committed
nye workflows fra tms-deploy
1 parent 6fab3a5 commit 640f96e

File tree

3 files changed

+19
-85
lines changed

3 files changed

+19
-85
lines changed

.github/workflows/build-and-deploy.yaml

Lines changed: 9 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -3,54 +3,13 @@ on:
33
push:
44
branches:
55
- "main"
6-
- "dev-*"
7-
env:
8-
"IMAGE": "ghcr.io/${{ github.repository }}/tms-min-side-varslinger:${{ github.sha }}"
9-
jobs:
10-
build:
11-
name: "build"
12-
runs-on: "ubuntu-latest"
6+
paths-ignore:
7+
- .github/workflows/**
138

14-
steps:
15-
- uses: "actions/checkout@v3"
16-
- uses: "actions/setup-node@v3"
17-
with:
18-
node-version: 16
19-
registry-url: "https://npm.pkg.github.com"
20-
cache: 'npm'
21-
- name: "Install dependencies"
22-
run: "npm ci"
23-
env:
24-
NODE_AUTH_TOKEN: ${{ secrets.READER_TOKEN }}
25-
- name: "Build application"
26-
run: "npm run build"
27-
- name: "Build and publish Docker image"
28-
run:
29-
"docker build --pull --tag ${IMAGE} . && echo $GITHUB_TOKEN | docker login\
30-
\ --username $GITHUB_REPOSITORY --password-stdin https://ghcr.io\
31-
\ && docker push ${IMAGE}"
32-
env:
33-
"GITHUB_TOKEN": "${{ secrets.GITHUB_TOKEN }}"
34-
deploy-dev:
35-
runs-on: "ubuntu-latest"
36-
needs: "build"
37-
steps:
38-
- uses: "actions/checkout@v3"
39-
- name: "Deploy to dev"
40-
uses: "nais/deploy/actions/deploy@v1"
41-
env:
42-
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
43-
CLUSTER: dev-gcp
44-
RESOURCE: nais/dev-gcp/nais.yaml
45-
deploy-prod:
46-
if: github.ref == 'refs/heads/main'
47-
runs-on: "ubuntu-latest"
48-
needs: "build"
49-
steps:
50-
- uses: "actions/checkout@v3"
51-
- name: "Deploy to prod"
52-
uses: "nais/deploy/actions/deploy@v1"
53-
env:
54-
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
55-
CLUSTER: prod-gcp
56-
RESOURCE: nais/prod-gcp/nais.yaml
9+
jobs:
10+
deploy:
11+
uses: navikt/tms-deploy/.github/workflows/mikrofrontend-deploy.yaml@main
12+
with:
13+
cluster: '["dev-gcp", "prod-gcp"]'
14+
node-version: 16
15+
secrets: inherit

.github/workflows/deploy-dev.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Deploy to dev
2+
on: workflow_dispatch
3+
4+
jobs:
5+
deploy:
6+
uses: navikt/tms-deploy/.github/workflows/mikrofrontend-deploy.yaml@main
7+
with:
8+
cluster: '["dev-gcp"]'
9+
node-version: 16
10+
secrets: inherit

.github/workflows/push-to-cdn.yaml

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)