From fcb8885054848e1b7819175842b1df183316531a Mon Sep 17 00:00:00 2001 From: wahab <80642481+abdiwahab88@users.noreply.github.com> Date: Sun, 26 Mar 2023 15:46:35 +0200 Subject: [PATCH 1/5] Create gradle-ci.yml --- .github/workflows/gradle-ci.yml | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/gradle-ci.yml diff --git a/.github/workflows/gradle-ci.yml b/.github/workflows/gradle-ci.yml new file mode 100644 index 0000000..3b01a75 --- /dev/null +++ b/.github/workflows/gradle-ci.yml @@ -0,0 +1,34 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. +# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle + +name: Java CI with Gradle + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + - name: Build with Gradle + uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 + with: + arguments: build From ffd202ce612380bf38e251a1ad240c05c17aca21 Mon Sep 17 00:00:00 2001 From: wahab <80642481+abdiwahab88@users.noreply.github.com> Date: Mon, 27 Mar 2023 13:38:44 +0200 Subject: [PATCH 2/5] Update gradle-ci.yml --- .github/workflows/gradle-ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/gradle-ci.yml b/.github/workflows/gradle-ci.yml index 3b01a75..2c6794e 100644 --- a/.github/workflows/gradle-ci.yml +++ b/.github/workflows/gradle-ci.yml @@ -32,3 +32,11 @@ jobs: uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 with: arguments: build + - name: Build & push Docker image + with: + image: wahab99/my-demo + tags: v1, latest + registry: docker.io + dockerfile: Dockerfile.ci + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} From aec694ab617fff7e031ab4fc895bd74bccf74156 Mon Sep 17 00:00:00 2001 From: wahab <80642481+abdiwahab88@users.noreply.github.com> Date: Mon, 27 Mar 2023 13:45:32 +0200 Subject: [PATCH 3/5] Rename gradle-ci.yml to cipher-ci.yml --- .github/workflows/{gradle-ci.yml => cipher-ci.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{gradle-ci.yml => cipher-ci.yml} (100%) diff --git a/.github/workflows/gradle-ci.yml b/.github/workflows/cipher-ci.yml similarity index 100% rename from .github/workflows/gradle-ci.yml rename to .github/workflows/cipher-ci.yml From e6ee97062d8811bbce191875539f9eb663acff98 Mon Sep 17 00:00:00 2001 From: wahab <80642481+abdiwahab88@users.noreply.github.com> Date: Mon, 27 Mar 2023 15:50:40 +0200 Subject: [PATCH 4/5] Update cipher-ci.yml --- .github/workflows/cipher-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cipher-ci.yml b/.github/workflows/cipher-ci.yml index 2c6794e..c4105d0 100644 --- a/.github/workflows/cipher-ci.yml +++ b/.github/workflows/cipher-ci.yml @@ -35,7 +35,7 @@ jobs: - name: Build & push Docker image with: image: wahab99/my-demo - tags: v1, latest + tags: v1, v2, latest registry: docker.io dockerfile: Dockerfile.ci username: ${{ secrets.DOCKER_USERNAME }} From ad8c116cb57d59117e8d3ae8d1b8bcc512cbb88e Mon Sep 17 00:00:00 2001 From: wahab <80642481+abdiwahab88@users.noreply.github.com> Date: Mon, 27 Mar 2023 15:56:53 +0200 Subject: [PATCH 5/5] Update cipher-ci.yml --- .github/workflows/cipher-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cipher-ci.yml b/.github/workflows/cipher-ci.yml index c4105d0..cbc3e64 100644 --- a/.github/workflows/cipher-ci.yml +++ b/.github/workflows/cipher-ci.yml @@ -35,7 +35,7 @@ jobs: - name: Build & push Docker image with: image: wahab99/my-demo - tags: v1, v2, latest + tags: v1, v2 registry: docker.io dockerfile: Dockerfile.ci username: ${{ secrets.DOCKER_USERNAME }}