Skip to content

Commit

Permalink
release (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaykeren authored Dec 18, 2024
2 parents c7fcccf + 635bdc2 commit a0380bf
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a0380bf

Please sign in to comment.