Bump actions/download-artifact from 1 to 4.1.7 in /.github/workflows #50
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Java CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Build with Maven | |
run: mvn -B package --file pom.xml | |
- name: Copy jar file | |
run: cp target/*.jar api-service.jar | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: api-service.jar | |
path: target/ | |
deploy: | |
needs: [build] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/[email protected] | |
with: | |
name: api-service.jar | |
path: target/ | |
- name: Publish to registry | |
uses: elgohr/Publish-Docker-Github-Action@master | |
with: | |
name: docker.pkg.github.com/300kks/api-service/api-service | |
username: ${{secrets.PKG_REGISTRY_USERNAME}} | |
password: ${{secrets.PKG_REGISTRY_PASSWORD}} | |
registry: docker.pkg.github.com |