Skip to content

Commit

Permalink
Add on push workflow trigger for ona-custom-changes
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankApiyo committed Dec 14, 2022
1 parent a2868e9 commit 2187ba4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/docker-image-build.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: build and push image to dockerhub
on:
push:
branches:
- ona-custom-changes
workflow_dispatch:
inputs:
versionTag:
Expand All @@ -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
Expand All @@ -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 }}

0 comments on commit 2187ba4

Please sign in to comment.