From 6cef064682b1e506a9285a7659d2758ce17e5310 Mon Sep 17 00:00:00 2001 From: sdomingobasora <54351560+sdomingobasora@users.noreply.github.com> Date: Tue, 29 Nov 2022 12:56:50 +0100 Subject: [PATCH] ci: create Github Action Closes #6 --- .github/workflows/jib-container-publish.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/jib-container-publish.yml diff --git a/.github/workflows/jib-container-publish.yml b/.github/workflows/jib-container-publish.yml new file mode 100644 index 00000000..932bfd0c --- /dev/null +++ b/.github/workflows/jib-container-publish.yml @@ -0,0 +1,21 @@ +name: JIB container publish + +on: + pull_request: + types: + - closed + +jobs: + jib: + runs-on: ubuntu-latest + if: github.event.pull_request.merged == true + steps: + - name: JIB container build and publish + uses: MathieuSoysal/jib-container-publish.yml@v2.1.3 + with: + REGISTRY: docker.io + IMAGE_NAME: ${{ github.repository }} + tag-name: ${{ github.run_number }} + USERNAME: ${{ secrets.DOCKERHUB_USER }} + PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }} + java-version: 17