diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 1616d169890..c4f2b3f5471 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -35,27 +35,18 @@ jobs: # Build Docker Image - name: Build Docker Image - run: docker build -t myproject:${{ github.ref_name }} . + run: docker build -t petclinic:${{ github.ref_name }} . # Save Docker Image as Artifact - name: Save Docker Image run: | - docker save myproject:${{ github.ref_name }} > myproject-${{ github.ref_name }}.tar - echo "Docker image saved as myproject-${{ github.ref_name }}.tar" - - # Upload Artifacts to Release - - name: Upload Artifacts - uses: actions/upload-release-asset@v1 - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: build/libs/*.jar - asset_name: myproject-${{ github.ref_name }}.jar - content_type: application/java-archive + docker save petclinic:${{ github.ref_name }} > petclinic-${{ github.ref_name }}.tar + echo "Docker image saved as petclinic-${{ github.ref_name }}.tar" - name: Upload Docker Image uses: actions/upload-release-asset@v1 with: upload_url: ${{ github.event.release.upload_url }} - asset_path: myproject-${{ github.ref_name }}.tar - asset_name: myproject-${{ github.ref_name }}.tar - content_type: application/x-tar + asset_path: petclinic-${{ github.ref_name }}.tar + asset_name: petclinic-${{ github.ref_name }}.tar + asset_content_type: application/x-tar