Skip to content

Commit

Permalink
Homewrok1 maven-publish.yml fix 10
Browse files Browse the repository at this point in the history
  • Loading branch information
shatvani authored Oct 31, 2024
1 parent 287e659 commit eaf21e8
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,18 @@ jobs:

- name: Check Java version
run: java -version
- name: Upload artifact for Docker job
- name: Build with Maven
run: ./mvnw package
- name: Publish to GitHub Packages Apache Maven
run: mvn deploy
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Upload artifact for Docker job
uses: actions/upload-artifact@v3
with:
name: java-app
path: '${{ github.workspace }}/target/*.jar'


docker:

Expand All @@ -41,6 +51,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Download artifact from Maven job
uses: actions/download-artifact@v3
with:
name: java-app
- name: Logging in to Docker
run: docker login ghcr.io -u shatvani -p ${{ github.token }}
- name: Build the Docker image
Expand Down

0 comments on commit eaf21e8

Please sign in to comment.