chore: debug build version check changes with version update #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: karrio-build | |
on: | |
push: | |
branches: [ "main", "automated-build" ] | |
jobs: | |
changes: | |
runs-on: ubuntu-latest | |
outputs: | |
version: ${{ steps.changes.outputs.version }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Get the version | |
run: | | |
VERSION=$(head -1 ./apps/api/karrio/server/VERSION) | |
echo "VERSION=$VERSION" >> $GITHUB_ENV | |
- uses: dorny/paths-filter@v2 | |
id: changes | |
with: | |
filters: | | |
version: | |
- 'apps/api/karrio/server/VERSION' | |
server-build: | |
needs: changes | |
if: ${{ needs.changes.outputs.version == 'true' }} | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
id-token: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build karrio server image | |
run: | | |
echo 'Building karrio server:${{ env.VERSION }}...' | |
# ./bin/build-server-image-from-source ${{ env.VERSION }} | |
- name: Push karrio server image | |
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: | |
needs: changes | |
if: ${{ needs.changes.outputs.version == 'true' }} | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
id-token: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build karrio dashboard image | |
run: | | |
echo 'Building karrio dashboard:${{ env.VERSION }}...' | |
# ./bin/build-dashboard-from-source ${{ 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 }} |