From fbe0ca07d1d76ce962ebd90129cbf8c62f802e10 Mon Sep 17 00:00:00 2001 From: GoldenAnpu Date: Thu, 27 Nov 2025 13:11:16 +0100 Subject: [PATCH 1/8] Add Python setup step to build workflows --- .github/workflows/build-push-dev.yml | 6 ++++++ .github/workflows/build-push-release.yml | 5 +++++ .github/workflows/manual-build-push-release.yml | 5 +++++ 3 files changed, 16 insertions(+) diff --git a/.github/workflows/build-push-dev.yml b/.github/workflows/build-push-dev.yml index 5677baf..fa6af61 100644 --- a/.github/workflows/build-push-dev.yml +++ b/.github/workflows/build-push-dev.yml @@ -10,6 +10,12 @@ jobs: steps: - name: Checkout uses: actions/checkout@v6 + + - name: Set up Python + uses: actions/setup-python@v6 + with: + python-version: "3.12" + - name: Write Tag to ENV variable run: echo "BRANCH_NAME=${{ github.event.release.tag_name }}" >> $GITHUB_ENV diff --git a/.github/workflows/build-push-release.yml b/.github/workflows/build-push-release.yml index c2b93aa..a9c1d51 100644 --- a/.github/workflows/build-push-release.yml +++ b/.github/workflows/build-push-release.yml @@ -12,6 +12,11 @@ jobs: - name: Checkout uses: actions/checkout@v6 + - name: Set up Python + uses: actions/setup-python@v6 + with: + python-version: "3.12" + - name: Echo ${{ github.event.release.tag_name }} run: echo ${{ github.event.release.tag_name }} diff --git a/.github/workflows/manual-build-push-release.yml b/.github/workflows/manual-build-push-release.yml index d98dcb3..2edacd2 100644 --- a/.github/workflows/manual-build-push-release.yml +++ b/.github/workflows/manual-build-push-release.yml @@ -20,6 +20,11 @@ jobs: - name: Checkout uses: actions/checkout@v6 + - name: Set up Python + uses: actions/setup-python@v6 + with: + python-version: "3.12" + - name: Tag Version run: echo ${{ github.event.inputs.tag_version }} From 393182f3871bf9f29c8c52c2d37ced298040fed2 Mon Sep 17 00:00:00 2001 From: GoldenAnpu Date: Thu, 27 Nov 2025 14:51:23 +0100 Subject: [PATCH 2/8] Refactor release workflows to use agent-specific common workflows and update Python setup --- .github/workflows/app-release.yml | 2 +- .github/workflows/workflows-common.yml | 122 ++++++++++++++++++ .../workflows-sync-models-common.yml | 53 ++++++++ 3 files changed, 176 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/workflows-common.yml create mode 100644 .github/workflows/workflows-sync-models-common.yml diff --git a/.github/workflows/app-release.yml b/.github/workflows/app-release.yml index e89aeb0..0284f85 100644 --- a/.github/workflows/app-release.yml +++ b/.github/workflows/app-release.yml @@ -82,7 +82,7 @@ jobs: Supervisely-Release: needs: Update-App-Config - uses: supervisely-ecosystem/workflows/.github/workflows/common.yml@master + uses: supervisely/agent/.github/workflows/workflows-common.yml@fix-release-workflow secrets: SUPERVISELY_DEV_API_TOKEN: "${{ secrets.SUPERVISELY_DEV_API_TOKEN }}" SUPERVISELY_PRIVATE_DEV_API_TOKEN: "${{ secrets.SUPERVISELY_PRIVATE_DEV_API_TOKEN }}" diff --git a/.github/workflows/workflows-common.yml b/.github/workflows/workflows-common.yml new file mode 100644 index 0000000..5dce7cd --- /dev/null +++ b/.github/workflows/workflows-common.yml @@ -0,0 +1,122 @@ +name: Supervisely release +run-name: Supervisely ${{ github.repository }} app release +on: + workflow_call: + inputs: + SUPERVISELY_SERVER_ADDRESS: + required: true + type: string + SUPERVISELY_PROD_SERVER_ADDRESS: + required: true + type: string + SLUG: + required: true + type: string + RELEASE_VERSION: + required: true + type: string + RELEASE_DESCRIPTION: + required: true + type: string + SUBAPP_PATHS: + required: true + type: string + RELEASE_TYPE: + required: true + type: string + SKIP_INSTANCE_VERSION_VALIDATION: + required: false + type: boolean + default: false + SKIP_IMAGE_VALIDATION: + required: false + type: boolean + default: false + ARCHIVE_ONLY_CONFIG: + required: false + type: boolean + default: false + COMMIT_SHA: + required: false + type: string + default: "" + MODELS_PATH: + required: false + type: string + default: "" + FRAMEWORK: + required: false + type: string + default: "" + RELEASE_MODELS: + required: false + type: boolean + default: false + secrets: + SUPERVISELY_DEV_API_TOKEN: + required: true + SUPERVISELY_PRIVATE_DEV_API_TOKEN: + required: true + SUPERVISELY_PROD_API_TOKEN: + required: true + GH_ACCESS_TOKEN: + required: true + +jobs: + Supervisely-Release: + runs-on: gha-runner-supervisely + steps: + - uses: actions/checkout@v6 + with: + ref: ${{ inputs.COMMIT_SHA }} + fetch-depth: 0 + + - uses: actions/checkout@v6 + with: + repository: supervisely-ecosystem/workflows + path: workflow + + - name: Set up Python + uses: actions/setup-python@v6 + with: + python-version: "3.12" + + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y libgl1 libmagic1 skopeo + python -m venv venv + . venv/bin/activate + python -m pip install --upgrade pip + pip install -r ./workflow/requirements.txt + + - name: Supervisely Release + run: | + . venv/bin/activate + python ./workflow/release.py + env: + DEV_SERVER_ADDRESS: "${{ inputs.SUPERVISELY_SERVER_ADDRESS }}" + PROD_SERVER_ADDRESS: "${{ inputs.SUPERVISELY_PROD_SERVER_ADDRESS }}" + DEV_API_TOKEN: "${{ secrets.SUPERVISELY_DEV_API_TOKEN }}" + PRIVATE_DEV_API_TOKEN: "${{ secrets.SUPERVISELY_PRIVATE_DEV_API_TOKEN }}" + PROD_API_TOKEN: "${{ secrets.SUPERVISELY_PROD_API_TOKEN }}" + GH_ACCESS_TOKEN: "${{ secrets.GH_ACCESS_TOKEN }}" + SLUG: "${{ inputs.SLUG }}" + RELEASE_VERSION: "${{ inputs.RELEASE_VERSION }}" + RELEASE_DESCRIPTION: "${{ inputs.RELEASE_DESCRIPTION }}" + RELEASE_TYPE: "${{ inputs.RELEASE_TYPE }}" + SUBAPP_PATHS: "${{ inputs.SUBAPP_PATHS }}" + SKIP_INSTANCE_VERSION_VALIDATION: "${{ inputs.SKIP_INSTANCE_VERSION_VALIDATION }}" + SKIP_IMAGE_VALIDATION: "${{ inputs.SKIP_IMAGE_VALIDATION }}" + ARCHIVE_ONLY_CONFIG: "${{ inputs.ARCHIVE_ONLY_CONFIG }}" + + Models-release: + needs: Supervisely-Release + if: inputs.RELEASE_MODELS && inputs.RELEASE_TYPE != 'release-branch' + uses: supervisely/agent/.github/workflows/workflows-sync-models-common.yml@fix-release-workflow + secrets: + API_TOKEN: "${{ secrets.SUPERVISELY_PROD_API_TOKEN }}" + with: + SERVER_ADDRESS: "${{ vars.SUPERVISELY_PROD_SERVER_ADDRESS }}" + MODELS_PATH: "${{ inputs.MODELS_PATH }}" + FRAMEWORK: "${{ inputs.FRAMEWORK }}" diff --git a/.github/workflows/workflows-sync-models-common.yml b/.github/workflows/workflows-sync-models-common.yml new file mode 100644 index 0000000..15a9e12 --- /dev/null +++ b/.github/workflows/workflows-sync-models-common.yml @@ -0,0 +1,53 @@ +name: Sync Models +on: + workflow_call: + inputs: + MODELS_PATH: + type: string + required: false + DET_MODELS_PATH: + type: string + required: false + FRAMEWORK: + type: string + required: true + SERVER_ADDRESS: + type: string + required: true + secrets: + API_TOKEN: + required: true + +jobs: + release-models: + runs-on: gha-runner-supervisely + steps: + - name: Checkout repository + uses: actions/checkout@v6 + with: + repository: supervisely-ecosystem/workflows + path: workflow + + - name: Set up Python + uses: actions/setup-python@v6 + with: + python-version: "3.12" + + - name: Install dependencies + run: | + sudo apt-get update + python -m venv venv + . venv/bin/activate + python -m pip install --upgrade pip + pip install -r workflow/requirements.txt + + - name: Sync models + run: | + . venv/bin/activate + python workflow/release_models.py + env: + SERVER_ADDRESS: ${{ inputs.SERVER_ADDRESS }} + API_TOKEN: ${{ secrets.API_TOKEN }} + MODELS_PATH: ${{ inputs.MODELS_PATH }} + DET_MODELS_PATH: ${{ inputs.DET_MODELS_PATH }} + FRAMEWORK: ${{ inputs.FRAMEWORK }} From 998d894a9177198c27aac35e08f8e106f190850d Mon Sep 17 00:00:00 2001 From: GoldenAnpu Date: Thu, 27 Nov 2025 15:08:47 +0100 Subject: [PATCH 3/8] Update app-release workflow reference to use master branch --- .github/workflows/build-push-release.yml | 2 +- .github/workflows/manual-build-push-release.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-push-release.yml b/.github/workflows/build-push-release.yml index a9c1d51..b1d2187 100644 --- a/.github/workflows/build-push-release.yml +++ b/.github/workflows/build-push-release.yml @@ -49,7 +49,7 @@ jobs: permissions: contents: write actions: write - uses: supervisely/agent/.github/workflows/app-release.yml@app-release + uses: supervisely/agent/.github/workflows/app-release.yml@master secrets: SUPERVISELY_DEV_API_TOKEN: "${{ secrets.SUPERVISELY_DEV_API_TOKEN }}" SUPERVISELY_PRIVATE_DEV_API_TOKEN: "${{ secrets.SUPERVISELY_PRIVATE_DEV_API_TOKEN }}" diff --git a/.github/workflows/manual-build-push-release.yml b/.github/workflows/manual-build-push-release.yml index 2edacd2..0885a83 100644 --- a/.github/workflows/manual-build-push-release.yml +++ b/.github/workflows/manual-build-push-release.yml @@ -55,7 +55,7 @@ jobs: permissions: contents: write actions: write - uses: supervisely/agent/.github/workflows/app-release.yml@app-release + uses: supervisely/agent/.github/workflows/app-release.yml@master secrets: SUPERVISELY_DEV_API_TOKEN: "${{ secrets.SUPERVISELY_DEV_API_TOKEN }}" SUPERVISELY_PRIVATE_DEV_API_TOKEN: "${{ secrets.SUPERVISELY_PRIVATE_DEV_API_TOKEN }}" From a5f3f93d2091e1959cfbc97099bc31efb2092dde Mon Sep 17 00:00:00 2001 From: GoldenAnpu Date: Thu, 27 Nov 2025 15:10:50 +0100 Subject: [PATCH 4/8] Update app-release workflow references to use fix-release-workflow branch --- .github/workflows/build-push-release.yml | 2 +- .github/workflows/manual-app-release.yml | 2 +- .github/workflows/manual-build-push-release.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-push-release.yml b/.github/workflows/build-push-release.yml index b1d2187..7c0d44b 100644 --- a/.github/workflows/build-push-release.yml +++ b/.github/workflows/build-push-release.yml @@ -49,7 +49,7 @@ jobs: permissions: contents: write actions: write - uses: supervisely/agent/.github/workflows/app-release.yml@master + uses: supervisely/agent/.github/workflows/app-release.yml@fix-release-workflow secrets: SUPERVISELY_DEV_API_TOKEN: "${{ secrets.SUPERVISELY_DEV_API_TOKEN }}" SUPERVISELY_PRIVATE_DEV_API_TOKEN: "${{ secrets.SUPERVISELY_PRIVATE_DEV_API_TOKEN }}" diff --git a/.github/workflows/manual-app-release.yml b/.github/workflows/manual-app-release.yml index 2fa9480..82088b5 100644 --- a/.github/workflows/manual-app-release.yml +++ b/.github/workflows/manual-app-release.yml @@ -17,7 +17,7 @@ jobs: permissions: contents: write actions: write - uses: supervisely/agent/.github/workflows/app-release.yml@app-release + uses: supervisely/agent/.github/workflows/app-release.yml@fix-release-workflow secrets: SUPERVISELY_DEV_API_TOKEN: "${{ secrets.SUPERVISELY_DEV_API_TOKEN }}" SUPERVISELY_PRIVATE_DEV_API_TOKEN: "${{ secrets.SUPERVISELY_PRIVATE_DEV_API_TOKEN }}" diff --git a/.github/workflows/manual-build-push-release.yml b/.github/workflows/manual-build-push-release.yml index 0885a83..3d40555 100644 --- a/.github/workflows/manual-build-push-release.yml +++ b/.github/workflows/manual-build-push-release.yml @@ -55,7 +55,7 @@ jobs: permissions: contents: write actions: write - uses: supervisely/agent/.github/workflows/app-release.yml@master + uses: supervisely/agent/.github/workflows/app-release.yml@fix-release-workflow secrets: SUPERVISELY_DEV_API_TOKEN: "${{ secrets.SUPERVISELY_DEV_API_TOKEN }}" SUPERVISELY_PRIVATE_DEV_API_TOKEN: "${{ secrets.SUPERVISELY_PRIVATE_DEV_API_TOKEN }}" From 0238f8f49eca6ee23fbc95c83ab1548e4724bc9b Mon Sep 17 00:00:00 2001 From: GoldenAnpu Date: Thu, 27 Nov 2025 15:27:29 +0100 Subject: [PATCH 5/8] Update Docker image tag description in manual-build-push-release workflow --- .github/workflows/manual-build-push-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/manual-build-push-release.yml b/.github/workflows/manual-build-push-release.yml index 3d40555..f34d67b 100644 --- a/.github/workflows/manual-build-push-release.yml +++ b/.github/workflows/manual-build-push-release.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: inputs: tag_version: - description: "Docker Image Tag" + description: "Docker Image Tag (without 'v' prefix)" required: true default: "" release_description: From 68a827c1a92062b8bc4c0d226e0bb88dd171b8d8 Mon Sep 17 00:00:00 2001 From: GoldenAnpu Date: Thu, 27 Nov 2025 15:30:09 +0100 Subject: [PATCH 6/8] Fix release version formatting in manual-build-push-release workflow --- .github/workflows/manual-build-push-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/manual-build-push-release.yml b/.github/workflows/manual-build-push-release.yml index f34d67b..9b8aadb 100644 --- a/.github/workflows/manual-build-push-release.yml +++ b/.github/workflows/manual-build-push-release.yml @@ -64,5 +64,5 @@ jobs: with: SUPERVISELY_SERVER_ADDRESS: "${{ vars.SUPERVISELY_DEV_SERVER_ADDRESS }}" SUPERVISELY_PROD_SERVER_ADDRESS: "${{ vars.SUPERVISELY_PROD_SERVER_ADDRESS }}" - RELEASE_VERSION: "${{ inputs.tag_version }}" + RELEASE_VERSION: "v${{ inputs.tag_version }}" RELEASE_DESCRIPTION: "${{ inputs.release_description }}" From 7b80cdd3d60745c92b9a0907c456bfee7d75ae49 Mon Sep 17 00:00:00 2001 From: GoldenAnpu Date: Thu, 27 Nov 2025 15:37:21 +0100 Subject: [PATCH 7/8] Update workflow references to use master branch instead of fix-release-workflow --- .github/workflows/app-release.yml | 2 +- .github/workflows/build-push-release.yml | 2 +- .github/workflows/manual-app-release.yml | 2 +- .github/workflows/manual-build-push-release.yml | 2 +- .github/workflows/workflows-common.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/app-release.yml b/.github/workflows/app-release.yml index 0284f85..5ba56da 100644 --- a/.github/workflows/app-release.yml +++ b/.github/workflows/app-release.yml @@ -82,7 +82,7 @@ jobs: Supervisely-Release: needs: Update-App-Config - uses: supervisely/agent/.github/workflows/workflows-common.yml@fix-release-workflow + uses: supervisely/agent/.github/workflows/workflows-common.yml@master secrets: SUPERVISELY_DEV_API_TOKEN: "${{ secrets.SUPERVISELY_DEV_API_TOKEN }}" SUPERVISELY_PRIVATE_DEV_API_TOKEN: "${{ secrets.SUPERVISELY_PRIVATE_DEV_API_TOKEN }}" diff --git a/.github/workflows/build-push-release.yml b/.github/workflows/build-push-release.yml index 7c0d44b..b1d2187 100644 --- a/.github/workflows/build-push-release.yml +++ b/.github/workflows/build-push-release.yml @@ -49,7 +49,7 @@ jobs: permissions: contents: write actions: write - uses: supervisely/agent/.github/workflows/app-release.yml@fix-release-workflow + uses: supervisely/agent/.github/workflows/app-release.yml@master secrets: SUPERVISELY_DEV_API_TOKEN: "${{ secrets.SUPERVISELY_DEV_API_TOKEN }}" SUPERVISELY_PRIVATE_DEV_API_TOKEN: "${{ secrets.SUPERVISELY_PRIVATE_DEV_API_TOKEN }}" diff --git a/.github/workflows/manual-app-release.yml b/.github/workflows/manual-app-release.yml index 82088b5..2a7f310 100644 --- a/.github/workflows/manual-app-release.yml +++ b/.github/workflows/manual-app-release.yml @@ -17,7 +17,7 @@ jobs: permissions: contents: write actions: write - uses: supervisely/agent/.github/workflows/app-release.yml@fix-release-workflow + uses: supervisely/agent/.github/workflows/app-release.yml@master secrets: SUPERVISELY_DEV_API_TOKEN: "${{ secrets.SUPERVISELY_DEV_API_TOKEN }}" SUPERVISELY_PRIVATE_DEV_API_TOKEN: "${{ secrets.SUPERVISELY_PRIVATE_DEV_API_TOKEN }}" diff --git a/.github/workflows/manual-build-push-release.yml b/.github/workflows/manual-build-push-release.yml index 9b8aadb..84fc746 100644 --- a/.github/workflows/manual-build-push-release.yml +++ b/.github/workflows/manual-build-push-release.yml @@ -55,7 +55,7 @@ jobs: permissions: contents: write actions: write - uses: supervisely/agent/.github/workflows/app-release.yml@fix-release-workflow + uses: supervisely/agent/.github/workflows/app-release.yml@master secrets: SUPERVISELY_DEV_API_TOKEN: "${{ secrets.SUPERVISELY_DEV_API_TOKEN }}" SUPERVISELY_PRIVATE_DEV_API_TOKEN: "${{ secrets.SUPERVISELY_PRIVATE_DEV_API_TOKEN }}" diff --git a/.github/workflows/workflows-common.yml b/.github/workflows/workflows-common.yml index 5dce7cd..05f60bb 100644 --- a/.github/workflows/workflows-common.yml +++ b/.github/workflows/workflows-common.yml @@ -113,7 +113,7 @@ jobs: Models-release: needs: Supervisely-Release if: inputs.RELEASE_MODELS && inputs.RELEASE_TYPE != 'release-branch' - uses: supervisely/agent/.github/workflows/workflows-sync-models-common.yml@fix-release-workflow + uses: supervisely/agent/.github/workflows/workflows-sync-models-common.yml@master secrets: API_TOKEN: "${{ secrets.SUPERVISELY_PROD_API_TOKEN }}" with: From 51da13e0818d9dc6167fc724b26d9b9cd2e3f963 Mon Sep 17 00:00:00 2001 From: GoldenAnpu Date: Thu, 27 Nov 2025 16:45:16 +0100 Subject: [PATCH 8/8] Fix build argument syntax in workflow files for Docker image builds --- .github/workflows/build-push-dev.yml | 10 +++++----- .github/workflows/build-push-release.yml | 10 +++++----- .github/workflows/manual-build-push-release.yml | 10 +++++----- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build-push-dev.yml b/.github/workflows/build-push-dev.yml index fa6af61..730518c 100644 --- a/.github/workflows/build-push-dev.yml +++ b/.github/workflows/build-push-dev.yml @@ -30,10 +30,10 @@ jobs: --local dockerfile=. \ --output type=image,name=supervisely/agent:dev,push=true \ --opt provenance=false \ - --opt build-arg=LABEL_VERSION=6.999.0 \ - --opt build-arg=LABEL_INFO=${{ env.LABEL_INFO }} \ - --opt build-arg=LABEL_MODES=${{ env.LABEL_MODES }} \ - --opt build-arg=LABEL_README=${{ env.LABEL_README }} \ - --opt build-arg=LABEL_BUILT_AT=${{ env.LABEL_BUILT_AT }} \ + --opt build-arg:LABEL_VERSION=6.999.0 \ + --opt build-arg:LABEL_INFO=${{ env.LABEL_INFO }} \ + --opt build-arg:LABEL_MODES=${{ env.LABEL_MODES }} \ + --opt build-arg:LABEL_README=${{ env.LABEL_README }} \ + --opt build-arg:LABEL_BUILT_AT=${{ env.LABEL_BUILT_AT }} \ --import-cache type=registry,ref=supervisely/agent:dev-cache \ --export-cache type=registry,ref=supervisely/agent:dev-cache,mode=max diff --git a/.github/workflows/build-push-release.yml b/.github/workflows/build-push-release.yml index b1d2187..5f822f5 100644 --- a/.github/workflows/build-push-release.yml +++ b/.github/workflows/build-push-release.yml @@ -36,11 +36,11 @@ jobs: --local dockerfile=. \ --output type=image,name=supervisely/agent:${{ env.LABEL_VERSION }},push=true \ --opt provenance=false \ - --opt build-arg=LABEL_VERSION=agent:${{ env.LABEL_VERSION }} \ - --opt build-arg=LABEL_INFO=${{ env.LABEL_INFO }} \ - --opt build-arg=LABEL_MODES=${{ env.LABEL_MODES }} \ - --opt build-arg=LABEL_README=${{ env.LABEL_README }} \ - --opt build-arg=LABEL_BUILT_AT=${{ env.LABEL_BUILT_AT }} \ + --opt build-arg:LABEL_VERSION=agent:${{ env.LABEL_VERSION }} \ + --opt build-arg:LABEL_INFO=${{ env.LABEL_INFO }} \ + --opt build-arg:LABEL_MODES=${{ env.LABEL_MODES }} \ + --opt build-arg:LABEL_README=${{ env.LABEL_README }} \ + --opt build-arg:LABEL_BUILT_AT=${{ env.LABEL_BUILT_AT }} \ --import-cache type=registry,ref=supervisely/agent:cache \ --export-cache type=registry,ref=supervisely/agent:cache,mode=max diff --git a/.github/workflows/manual-build-push-release.yml b/.github/workflows/manual-build-push-release.yml index 84fc746..001bd1c 100644 --- a/.github/workflows/manual-build-push-release.yml +++ b/.github/workflows/manual-build-push-release.yml @@ -42,11 +42,11 @@ jobs: --local dockerfile=. \ --output type=image,name=supervisely/agent:${{ env.LABEL_VERSION }},push=true \ --opt provenance=false \ - --opt build-arg=LABEL_VERSION=agent:${{ env.LABEL_VERSION }} \ - --opt build-arg=LABEL_INFO=${{ env.LABEL_INFO }} \ - --opt build-arg=LABEL_MODES=${{ env.LABEL_MODES }} \ - --opt build-arg=LABEL_README=${{ env.LABEL_README }} \ - --opt build-arg=LABEL_BUILT_AT=${{ env.LABEL_BUILT_AT }} \ + --opt build-arg:LABEL_VERSION=agent:${{ env.LABEL_VERSION }} \ + --opt build-arg:LABEL_INFO=${{ env.LABEL_INFO }} \ + --opt build-arg:LABEL_MODES=${{ env.LABEL_MODES }} \ + --opt build-arg:LABEL_README=${{ env.LABEL_README }} \ + --opt build-arg:LABEL_BUILT_AT=${{ env.LABEL_BUILT_AT }} \ --import-cache type=registry,ref=supervisely/agent:cache \ --export-cache type=registry,ref=supervisely/agent:cache,mode=max