Skip to content

Commit

Permalink
OK-735: Lisätään artifactory username ja password settingsiin
Browse files Browse the repository at this point in the history
  • Loading branch information
heidilm committed Nov 26, 2024
1 parent e7d05ca commit bf3377d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,30 @@ jobs:
distribution: 'corretto'
cache: 'maven'

- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- uses: szenius/[email protected]
with:
timezoneLinux: "Europe/Helsinki"

- name: Build with Maven
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ github.token }}
run: |
cd ovara-backend
mvn clean package -B -DskipTests
- uses: actions/cache@v3
id: ci-tools
with:
path: ci-tools
key: ${{ github.sha }}
# - uses: actions/cache@v3
# id: ci-tools
# with:
# path: ci-tools
# key: ${{ github.sha }}

# deploy_image:
# runs-on: ubuntu-latest
Expand Down
10 changes: 10 additions & 0 deletions ovara-backend/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,15 @@
<username>private-token</username>
<password>${env.GITHUB_TOKEN}</password>
</server>
<server>
<id>oph-sade-artifactory</id>
<username>${env.ARTIFACTORY_USERNAME}</username>
<password>${env.ARTIFACTORY_PASSWORD}</password>
</server>
<server>
<id>oph-nexus</id>
<username>${env.ARTIFACTORY_USERNAME}</username>
<password>${env.ARTIFACTORY_PASSWORD}</password>
</server>
</servers>
</settings>

0 comments on commit bf3377d

Please sign in to comment.