From a955c8d17442576da846b74f8a9b74a3671cd261 Mon Sep 17 00:00:00 2001 From: mgmetehan Date: Sat, 28 Oct 2023 21:21:47 +0300 Subject: [PATCH] update actions --- .github/workflows/actions.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index ed2c381..7213975 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -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 @@ -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 @@ -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 }} \ No newline at end of file