diff --git a/.github/workflows/publish-image.yml b/.github/workflows/publish-image.yml new file mode 100644 index 000000000000..1a1c651503b2 --- /dev/null +++ b/.github/workflows/publish-image.yml @@ -0,0 +1,36 @@ +name: Publish Container Image + +# This workflow automatically publishes container images to Docker Hub +# whenever there's a push to the master branch + +concurrency: + group: publish-image-${{ github.ref }} + cancel-in-progress: false + +on: + push: + branches: + - master + paths-ignore: + # config files + - ".**" + # documentation + - "docs/**" + - "**.md" + # tests + - "**test/**" + - "**_test.clj" + - "**/frontend/**.unit.*" + +jobs: + # Build the uberjar first + uberjar: + uses: ./.github/workflows/uberjar.yml + secrets: inherit + + # Containerize and publish the image + containerize: + needs: [uberjar] + if: needs.uberjar.result == 'success' + uses: ./.github/workflows/containerize-uberjar.yml + secrets: inherit