From a1f6a60a823b912a812cbf32627ef238fa0721e9 Mon Sep 17 00:00:00 2001 From: EdwinBetanc0urt Date: Sun, 20 Oct 2024 22:25:36 -0400 Subject: [PATCH 1/2] feat: Update `GitHub` actions. --- .github/workflows/ci.yml | 4 +++- .github/workflows/publish.yml | 9 +++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 216840d..70baef1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,6 @@ # This workflow will build a Java project with Gradle # This file was contributed by ysenih@erpya.com from ERP Consultores y Asociados, C.A +# This file was contributed by EdwinBetanc0urt@outlook.com https://github.com/EdwinBetanc0urt # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle # Add support to default build @@ -24,6 +25,7 @@ on: - bugfix/** - hotfix/** - feature/** + - test/** paths-ignore: - README.md - README.es.md @@ -46,7 +48,7 @@ jobs: architecture: x64 - name: Build with Gradle - uses: gradle/gradle-build-action@v3 + uses: gradle/actions/setup-gradle@v3 env: GITHUB_DEPLOY_USER: "${{ secrets.DEPLOY_USER }}" GITHUB_DEPLOY_TOKEN: "${{ secrets.DEPLOY_TOKEN }}" diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index cccc7ce..37f44ba 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,5 +1,6 @@ # This workflow will build a Java project with Gradle # This file was contributed by ysenih@erpya.com from ERP Consultores y Asociados, C.A +# This file was contributed by EdwinBetanc0urt@outlook.com https://github.com/EdwinBetanc0urt # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle name: Publish Project @@ -157,16 +158,16 @@ jobs: run: | unzip adempiere-processors-service.zip -d docker/ - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: # CONFIGURE DOCKER SECRETS INTO REPOSITORY username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_TOKEN }} - name: Push alpine image in Docker Hub - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v6 with: context: . - file: docker/Dockerfile.alpine + file: docker/alpine.Dockerfile push: true tags: | ${{ secrets.DOCKER_HUB_REPO_NAME }}:alpine-${{ github.event.release.tag_name }} @@ -197,7 +198,7 @@ jobs: uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Login to GitHub Container Registry uses: docker/login-action@v3 From 2553930f859418e0c2d1f0877a9991138c101e12 Mon Sep 17 00:00:00 2001 From: EdwinBetanc0urt Date: Sun, 20 Oct 2024 22:28:05 -0400 Subject: [PATCH 2/2] revert changes. --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 37f44ba..bfcccaa 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -167,7 +167,7 @@ jobs: uses: docker/build-push-action@v6 with: context: . - file: docker/alpine.Dockerfile + file: docker/Dockerfile.alpine push: true tags: | ${{ secrets.DOCKER_HUB_REPO_NAME }}:alpine-${{ github.event.release.tag_name }}