diff --git a/.github/workflows/docker-build-lite.yml b/.github/workflows/docker-build-lite.yml index 9cbe6289..7a972fd6 100644 --- a/.github/workflows/docker-build-lite.yml +++ b/.github/workflows/docker-build-lite.yml @@ -1,10 +1,10 @@ -name: Build Lite Docker Image +name: Build Offline Docker Image on: workflow_dispatch: inputs: _notes_: - description: '⚠️ Create lite Docker images only after non-trivial version releases.' + description: '⚠️ Create offline Docker images only after non-trivial version releases.' required: false type: boolean default: false @@ -14,7 +14,7 @@ permissions: packages: write jobs: - build-and-push-lite: + build-and-push-offline: runs-on: ubuntu-latest steps: - name: Checkout code @@ -34,12 +34,12 @@ jobs: fi echo "tag=$LATEST_TAG" >> $GITHUB_OUTPUT - - name: Prepare lite tag - id: lite_tag + - name: Prepare offline tag + id: offline_tag run: | - LITE_TAG="${{ steps.get_tag.outputs.tag }}-lite" - echo "Lite image tag: $LITE_TAG" - echo "lite_tag=$LITE_TAG" >> $GITHUB_OUTPUT + OFFLINE_TAG="${{ steps.get_tag.outputs.tag }}-offline" + echo "Offline image tag: $OFFLINE_TAG" + echo "offline_tag=$OFFLINE_TAG" >> $GITHUB_OUTPUT - name: Update version in __init__.py run: | @@ -62,23 +62,23 @@ jobs: with: images: ghcr.io/${{ github.repository }} tags: | - type=raw,value=${{ steps.lite_tag.outputs.lite_tag }} - type=raw,value=lite + type=raw,value=${{ steps.offline_tag.outputs.offline_tag }} + type=raw,value=offline - - name: Build and push lite Docker image + - name: Build and push offline Docker image uses: docker/build-push-action@v5 with: context: . - file: ./Dockerfile.lite + file: ./Dockerfile.offline platforms: linux/amd64,linux/arm64 push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha - cache-to: type=gha,mode=min + cache-to: type=gha,mode=max - name: Output image details run: | - echo "Lite Docker image built and pushed successfully!" - echo "Image tag: ghcr.io/${{ github.repository }}:${{ steps.lite_tag.outputs.lite_tag }}" + echo "Offline Docker image built and pushed successfully!" + echo "Image tag: ghcr.io/${{ github.repository }}:${{ steps.offline_tag.outputs.offline_tag }}" echo "Base Git tag used: ${{ steps.get_tag.outputs.tag }}" diff --git a/.github/workflows/docker-build-manual.yml b/.github/workflows/docker-build-manual.yml index 5d766322..de459d5a 100644 --- a/.github/workflows/docker-build-manual.yml +++ b/.github/workflows/docker-build-manual.yml @@ -2,6 +2,12 @@ name: Build Test Docker Image manually on: workflow_dispatch: + inputs: + _notes_: + description: '⚠️ Please create a new git tag before building the docker image.' + required: false + type: boolean + default: false permissions: contents: read