Skip to content

Commit d0c4517

Browse files
committed
Use github profile and supply github token
1 parent 2c4e448 commit d0c4517

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ jobs:
3939

4040
- name: Build with Maven
4141
working-directory: klass-api
42-
run: mvn -B install -P nexus -DskipTests
42+
run: mvn -B install -P github -DskipTests
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4345

4446
- name: Build and push
4547
uses: nais/docker-build-push@v0

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,14 @@ jobs:
3434
java-version: '8'
3535
cache: 'maven'
3636

37+
- name: Set up Maven
38+
uses: stCarolas/setup-maven@v5
39+
3740
- name: Build with Maven
3841
working-directory: klass-forvaltning
39-
run: mvn -B install -P nexus -DskipTests
42+
run: mvn -B install -P github -DskipTests
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4045

4146
- name: Build and push
4247
uses: nais/docker-build-push@v0

0 commit comments

Comments
 (0)