Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonygnolan authored Dec 22, 2022
1 parent af2f733 commit 2dd3c2d
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,26 @@ jobs:
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Temporarily save jar artifact
uses: actions/upload-artifact@v2
with:
name: jar-artifact
path: ${{ github.workspace }}/coderdojo-award-service/target/*.jar
retention-days: 1

push-image:
runs-on: ubuntu-latest
needs: build
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: actions/checkout@v2
- uses: actions/download-artifact@v1
with:
name: jar-artifact
path: target/

- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
Expand Down

0 comments on commit 2dd3c2d

Please sign in to comment.