Skip to content

Commit

Permalink
Merge pull request #102 from WildMeOrg/buildDepCMaker4Scoutbot
Browse files Browse the repository at this point in the history
Build scout when there is a change in Scoutbot
  • Loading branch information
tsubramanian authored Aug 23, 2024
2 parents 461421e + 81e334c commit 1d039dd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ on:
push:
branches:
- main

repository_dispatch:
types: build-trigger

jobs:
devops:
name: Docker image build
Expand All @@ -18,7 +20,7 @@ jobs:

steps:
- uses: actions/checkout@v2
if: github.event_name == 'push'
if: ${{ github.event_name == 'push' || github.event_name =='repository_dispatch'}}
with:
ref: main

Expand All @@ -45,12 +47,11 @@ jobs:
password: ${{ secrets.WBIA_WILDMEBOT_DOCKER_HUB_TOKEN }}

- name: Push to Docker Hub (Latest)
if: ${{ github.event_name == 'push' }}
if: ${{ github.event_name == 'push' || github.event_name =='repository_dispatch' }}
run: |
VERSION=$(echo ${GITHUB_REF} | sed 's#.*/v##')
bash ./publish.sh -t latest ${PUBLISH_IMAGES}
env:
PUBLISH_IMAGES: ${{ matrix.images }} scout



0 comments on commit 1d039dd

Please sign in to comment.