Skip to content

Commit

Permalink
chore: debug build version check changes with version update
Browse files Browse the repository at this point in the history
  • Loading branch information
danh91 committed Mar 7, 2024
1 parent a960a73 commit c3ff2d8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 31 deletions.
50 changes: 20 additions & 30 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,49 +29,39 @@ jobs:
id-token: write

steps:
- uses: actions/checkout@v2
- run: |
VERSION=$(head -1 ./apps/api/karrio/server/VERSION)
NEW_VERSION=$(git diff --quiet ${{ github.event.before }} ${{ github.sha }} ./apps/api/karrio/server/VERSION)
- uses: actions/checkout@v3

echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
echo 'Checking variables... ${{ env.NEW_VERSION != '' }} | ${{ env.NEW_VERSION }} | ${{ env.VERSION }}'
- name: Build karrio server image
if: ${{ env.NEW_VERSION != '' }}
run: |
echo 'Building karrio server:${{ env.VERSION }}...'
# ./bin/build-server-image-from-source ${{ env.VERSION }}
- name: Push karrio server image
if: ${{ env.NEW_VERSION != '' }}
run: |
echo 'Pushing karrio server:${{ env.VERSION }}...'
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
# docker push karrio/karrio-server:${{ env.VERSION }}
# dashboard-build:
dashboard-build:

# runs-on: ubuntu-latest
# permissions:
# contents: read
# packages: write
# id-token: write
needs: changes
if: ${{ needs.changes.outputs.version == 'true' }}
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write

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

# - name: Build karrio dashboard image
# if: ${{ env.NEW_VERSION != '' }}
# run: |
# echo 'Building karrio dashboard:${{ env.VERSION }}...'
# # ./bin/build-dashboard-from-source ${{ env.VERSION }}
- name: Build karrio dashboard image
run: |
echo 'Building karrio dashboard:${{ env.VERSION }}...'
# ./bin/build-dashboard-from-source ${{ env.VERSION }}
# - name: Push karrio dashboard image
# if: ${{ env.NEW_VERSION != '' }}
# run: |
# echo 'Pushing karrio dashboard:${{ env.VERSION }}...'
# docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
# # docker push karrio/karrio-dashboard:${{ env.VERSION }}
- name: Push karrio dashboard image
run: |
echo 'Pushing karrio dashboard:${{ env.VERSION }}...'
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
# docker push karrio/karrio-dashboard:${{ env.VERSION }}
2 changes: 1 addition & 1 deletion apps/api/karrio/server/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024.2.rc8
2024.2.rc8-dev

0 comments on commit c3ff2d8

Please sign in to comment.