Skip to content

Commit

Permalink
upload, download y docker login
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Dec 20, 2024
1 parent 4ba7b7a commit 5434614
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/pipelineIC.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
#pwd
#ls -R
set +e
curl -f -X POST -u '${{ secrets.SONAR_TOKEN }}:' 'https://sonarcloud.io/api/projects/create' -d 'name=${{ github.event.repository.name }}' -d 'project=${{ github.event.repository.name }}' -d 'organization=devsecopsusach' -d 'visibility=private'
curl -f -X POST -u '${{ secrets.SONAR_TOKEN }}:' 'https://sonarcloud.io/api/projects/create' -d 'name=${{ github.event.repository.name }}' -d 'project=${{ github.event.repository.name }}' -d 'organization=devsecopsusach' -d 'visibility=public'
if [ $? -ne 0 ]; then
echo "Proyecto ya existe en Sonarcloud"
echo "project_created=false" >> $GITHUB_ENV
Expand Down Expand Up @@ -194,4 +194,27 @@ jobs:
uses: actions/upload-artifact@master
with:
name: Depcheck Report
path: ./reports
path: ./reports

- name: Upload JAR
uses: actions/upload-artifact@master
with:
name: JAR
path: ${{github.workspace}}/build/libs/spring-petclinic-2.6.0.jar

DockerBuild:
needs: SCA
runs-on: ubuntu-24.04
steps:

- name: Docker Login
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Download JAR
uses: actions/download-artifact@master
with:
name: JAR
path: ${{github.workspace}}

0 comments on commit 5434614

Please sign in to comment.