Skip to content

Commit cea2316

Browse files
committed
test manual workflow
1 parent 3c6e150 commit cea2316

File tree

1 file changed

+0
-71
lines changed

1 file changed

+0
-71
lines changed

.github/workflows/klass-dev.yaml

Lines changed: 0 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -8,74 +8,3 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- run: echo "Hello, workflow!"
11-
build:
12-
name: Build
13-
permissions:
14-
contents: "read"
15-
id-token: "write"
16-
packages: "read"
17-
runs-on: ubuntu-latest
18-
steps:
19-
- name: Checkout
20-
uses: actions/checkout@v4
21-
with:
22-
fetch-depth: 0
23-
- uses: actions/setup-java@v4
24-
with:
25-
distribution: 'temurin'
26-
java-version: '17'
27-
cache: 'maven'
28-
29-
- name: Check what changed
30-
id: changed-files
31-
uses: "nais/what-changed@main"
32-
with:
33-
files: .nais/**/klass-api.yaml
34-
main-branch-name: 'nais-migration' #TODO: Remove when we change branch back to main
35-
- name: Check for test config changes
36-
id: test-config-changed
37-
uses: "nais/what-changed@main"
38-
with:
39-
files: .nais/test/klass-api.yaml
40-
main-branch-name: 'nais-migration' #TODO: Remove when we change branch back to main
41-
- name: Check for prod config changes
42-
id: prod-config-changed
43-
uses: "nais/what-changed@main"
44-
with:
45-
files: .nais/prod/klass-api.yaml
46-
main-branch-name: 'nais-migration' #TODO: Remove when we change branch back to main
47-
48-
- name: Build with Maven
49-
run: mvn --batch-mode --update-snapshots install -pl '!:klass-forvaltning'
50-
env:
51-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52-
53-
- name: Build and push
54-
uses: nais/docker-build-push@v0
55-
id: docker-build-push
56-
with:
57-
team: dapla-metadata
58-
image_suffix: api
59-
dockerfile: klass-api/Dockerfile
60-
docker_context: klass-api
61-
62-
deploy-test:
63-
name: Deploy to test
64-
needs: build
65-
permissions:
66-
contents: "read"
67-
id-token: "write"
68-
packages: "read"
69-
runs-on: ubuntu-latest
70-
steps:
71-
- name: Checkout
72-
uses: actions/checkout@v4
73-
74-
- uses: nais/deploy/actions/deploy@v2
75-
env:
76-
CLUSTER: test
77-
RESOURCE: .nais/test/klass-api-dev.yaml
78-
DEPLOY_SERVER: deploy.ssb.cloud.nais.io:443
79-
WORKLOAD_IMAGE: ${{ needs.build.outputs.image }}
80-
TELEMETRY: ${{ needs.build.outputs.telemetry }}
81-

0 commit comments

Comments
 (0)