Skip to content

Commit

Permalink
chore: debug docker build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
danh91 committed Mar 7, 2024
1 parent 69cfd34 commit 06a947b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: karrio-build

on:
push:
branches: [ "main" ]
branches: [ "main", "automated-build" ]

env:
VERSION: $(head -1 ./apps/api/karrio/server/VERSION)
Expand All @@ -18,8 +18,10 @@ jobs:
id-token: write

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2
- run: |
echo "NEW_VERSION=$(head -1 ./apps/api/karrio/server/VERSION)" >> $GITHUB_ENV
echo "NEW_VERSION=$(git diff --quiet ${{ github.event.before }} ${{ github.sha }} ./apps/api/karrio/server/VERSION)" >> $GITHUB_ENV
echo 'Checking variables... ${{ env.NEW_VERSION != '' }} | ${{ env.NEW_VERSION }} | ${{ env.VERSION }}'
- name: Build karrio server image
Expand All @@ -44,7 +46,7 @@ jobs:
# id-token: write

# steps:
# - uses: actions/checkout@v3
# - uses: actions/checkout@v2

# - name: Build karrio dashboard image
# if: ${{ env.NEW_VERSION != '' }}
Expand Down

0 comments on commit 06a947b

Please sign in to comment.