mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-04-24 19:32:48 +00:00
updating ci-pipeline.yml so we proxy maven central thru artifactory
This commit is contained in:
parent
4f4a6a4d82
commit
dfa5900452
1 changed files with 22 additions and 2 deletions
24
.github/workflows/ci-pipeline.yml
vendored
24
.github/workflows/ci-pipeline.yml
vendored
|
@ -22,6 +22,27 @@ jobs:
|
|||
distribution: 'temurin'
|
||||
java-version: '17'
|
||||
|
||||
- name: Configure Maven to use JFrog Artifactory
|
||||
run: |
|
||||
mkdir -p ~/.m2
|
||||
echo '<settings>
|
||||
<mirrors>
|
||||
<mirror>
|
||||
<id>jfrog-artifactory</id>
|
||||
<mirrorOf>central</mirrorOf>
|
||||
<url>https://trialt0zppb.jfrog.io/artifactory/maven-maven-remote/</url>
|
||||
<repositoryManager>true</repositoryManager>
|
||||
</mirror>
|
||||
</mirrors>
|
||||
<servers>
|
||||
<server>
|
||||
<id>jfrog-artifactory</id>
|
||||
<username>${{ secrets.ARTIFACTORY_USERNAME }}</username>
|
||||
<password>${{ secrets.ARTIFACTORY_IDENTITY_TOKEN }}</password>
|
||||
</server>
|
||||
</servers>
|
||||
</settings>' > ~/.m2/settings.xml
|
||||
|
||||
- name: Cache Maven dependencies
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
|
@ -46,6 +67,5 @@ jobs:
|
|||
run: echo ${{ secrets.ARTIFACTORY_IDENTITY_TOKEN }} | docker login trialt0zppb.jfrog.io -u ${{ secrets.ARTIFACTORY_USERNAME }} --password-stdin
|
||||
|
||||
- name: Push Docker image to JFrog Artifactory
|
||||
run: |
|
||||
docker push trialt0zppb.jfrog.io/onboarding-docker-local/spring-petclinic:latest
|
||||
run: docker push trialt0zppb.jfrog.io/onboarding-docker-local/spring-petclinic:latest
|
||||
|
||||
|
|
Loading…
Reference in a new issue