From b740c9d5c933fd1c488fcfec55dfd8b67e791b48 Mon Sep 17 00:00:00 2001 From: apiyo Date: Wed, 14 Dec 2022 09:28:52 +0300 Subject: [PATCH] Add on push workflow trigger for ona-custom-changes --- .github/workflows/docker-image-build.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image-build.yaml b/.github/workflows/docker-image-build.yaml index 86a2e36..1a24a03 100644 --- a/.github/workflows/docker-image-build.yaml +++ b/.github/workflows/docker-image-build.yaml @@ -1,5 +1,8 @@ name: build and push image to dockerhub on: + push: + branches: + - ona-custom-changes workflow_dispatch: inputs: versionTag: @@ -13,7 +16,7 @@ jobs: - name: Checkout to version uses: actions/checkout@v3 with: - ref: ${{ github.event.inputs.versionTag }} + ref: ${{ github.event.inputs.versionTag || 0.0.4 }} - name: Login to DockerHub uses: docker/login-action@v2 @@ -29,7 +32,7 @@ jobs: file: Dockerfile platforms: linux/amd64 tags: | - onaio/dirt-tile-server:${{ github.event.inputs.versionTag }} + onaio/dirt-tile-server:${{ github.event.inputs.versionTag || 0.0.4 }} - name: Image digest run: echo ${{ steps.docker-build.outputs.digest }}