Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing docker image tag and way to clone repo for BE build action #424

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions .github/workflows/build_images_uv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Check for modified paths
uses: dorny/paths-filter@v3
Expand All @@ -29,12 +27,11 @@ jobs:
rebuild:
- '.github/**'
- 'lumigator/**'
- '!lumigator/lumigator/frontend/**'

- name: Get repo version
if: steps.filter.outputs.rebuild == 'true'
run: |
echo "REPOVERSION=$(git describe --tags --dirty --match \"[0-9\.]*\" --always)" >> $GITHUB_ENV
echo "Version of the repo for this build: $REPOVERSION"
- name: Truncate commit SHA
if: steps.filter.outputs.rebuild == 'true' && github.event_name == 'push' && github.ref == 'refs/heads/main'
run: echo "GITHUB_SHA_SHORT=$(echo ${{ github.event.pull_request.head.sha }} | cut -c1-7)" >> $GITHUB_ENV

- name: Set up QEMU
if: steps.filter.outputs.rebuild == 'true'
Expand All @@ -59,5 +56,5 @@ jobs:
push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
target: "main_image"
tags: |
mzdotai/lumigator:backend_dev_${{ env.REPOVERSION }}
mzdotai/lumigator:backend_dev_${{ env.GITHUB_SHA_SHORT }}
${{ github.ref == 'refs/heads/main' && 'mzdotai/lumigator:latest' || '' }}
Loading