workflow: fix
This commit is contained in:
parent
797c7d5357
commit
911fa703f0
1 changed files with 4 additions and 2 deletions
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
|
@ -3,12 +3,14 @@ name: Build and Push Docker Image
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- alaskarfin/version.txt # Trigger workflow only when version.txt changes
|
- alaskarfin/version.txt
|
||||||
|
- alaskarseer/version.txt
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-alaskarfin:
|
build-alaskarfin:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: Dockerhub
|
environment: Dockerhub
|
||||||
|
if: contains(github.event.head_commit.message, 'alaskarfin/version.txt')
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Step 1: Check out the repository
|
# Step 1: Check out the repository
|
||||||
|
@ -37,9 +39,9 @@ jobs:
|
||||||
nomadics/alaskarfin:latest
|
nomadics/alaskarfin:latest
|
||||||
|
|
||||||
build-alaskarseer:
|
build-alaskarseer:
|
||||||
if: contains(github.event.commits.*.modified | join(' '), 'alaskarseer/version.txt')
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: Dockerhub
|
environment: Dockerhub
|
||||||
|
if: contains(github.event.head_commit.message, 'alaskarseer/version.txt')
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Step 1: Check out the repository
|
# Step 1: Check out the repository
|
||||||
|
|
Loading…
Reference in a new issue