Skip to content

Commit

Permalink
update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmetehan committed Oct 28, 2023
1 parent 824c680 commit a955c8d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v3

- name: Setup JDK 17
uses: actions/setup-java@v3
Expand All @@ -55,7 +55,7 @@ jobs:
restore-keys: |
${{ runner.os }}-maven-
- name: Build with Maven
- name: Build App
run: mvn -B package --file pom.xml -DskipTests

- name: Login to Docker Hub
Expand All @@ -67,9 +67,10 @@ jobs:
- name: Build and Push
uses: docker/build-push-action@v5
with:
tags: latest/githubactionsdemo:0.1.0
context: .
tags: latest/githubactions
registry: docker.io
dockerfile: Dockerfile
registry: docker.io
push: true
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

0 comments on commit a955c8d

Please sign in to comment.