From 67774c71e5d2ac9ed663b165ad8a67063b00c518 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 4 Sep 2025 19:54:02 +0200 Subject: [PATCH] chore(ci): set composite action outputs --- .github/actions/docker-tags/action.yml | 39 +++++++++++++++++++++++++- .github/workflows/docker-build.yml | 5 +++- 2 files changed, 42 insertions(+), 2 deletions(-) diff --git a/.github/actions/docker-tags/action.yml b/.github/actions/docker-tags/action.yml index 3ddd2fadf..1a563aade 100644 --- a/.github/actions/docker-tags/action.yml +++ b/.github/actions/docker-tags/action.yml @@ -1,12 +1,49 @@ name: 'docker-tags' description: 'Set Docker default Tag environment variables' # inputs: -# outputs: +outputs: + BRANCH_NAME: + description: 'The branch name' + value: ${{ steps.tags.outputs.BRANCH_NAME }} + TAG: + description: 'The Docker tag' + value: ${{ steps.tags.outputs.TAG }} + TAG_PLOT: + description: 'The Docker tag for the plot' + value: ${{ steps.tags.outputs.TAG_PLOT }} + TAG_FREQAI: + description: 'The Docker tag for the freqai' + value: ${{ steps.tags.outputs.TAG_FREQAI }} + TAG_FREQAI_RL: + description: 'The Docker tag for the freqai_rl' + value: ${{ steps.tags.outputs.TAG_FREQAI_RL }} + TAG_FREQAI_TORCH: + description: 'The Docker tag for the freqai_torch' + value: ${{ steps.tags.outputs.TAG_FREQAI_TORCH }} + TAG_ARM: + description: 'The Docker tag for the arm' + value: ${{ steps.tags.outputs.TAG_ARM }} + TAG_PLOT_ARM: + description: 'The Docker tag for the plot arm' + value: ${{ steps.tags.outputs.TAG_PLOT_ARM }} + TAG_FREQAI_ARM: + description: 'The Docker tag for the freqai arm' + value: ${{ steps.tags.outputs.TAG_FREQAI_ARM }} + TAG_FREQAI_RL_ARM: + description: 'The Docker tag for the freqai_rl arm' + value: ${{ steps.tags.outputs.TAG_FREQAI_RL_ARM }} + TAG_PI: + description: 'The Docker tag for the pi' + value: ${{ steps.tags.outputs.TAG_PI }} + CACHE_TAG_PI: + description: 'The Docker cache tag for the pi' + value: ${{ steps.tags.outputs.CACHE_TAG_PI }} runs: using: "composite" steps: - name: Extract branch name shell: bash + id: tags env: BRANCH_NAME_INPUT: ${{ github.event.inputs.branch_name }} run: | diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 4be322b2e..59d5bb968 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -66,7 +66,7 @@ jobs: env: TAG: ${{ steps.tags.outputs.TAG }} run: | - docker build -t ${IMAGE_NAME}:${TAG} . + docker build -t ${CACHE_IMAGE}:${TAG} . - name: Build ARMHF image without cache if: github.event_name == 'schedule' @@ -94,6 +94,9 @@ jobs: - name: Build ARMHF image with cache if: github.event_name != 'schedule' # disable provenance due to https://github.com/docker/buildx/issues/1509 + env: + TAG_PI: ${{ steps.tags.outputs.TAG_PI }} + CACHE_TAG_PI: ${{ steps.tags.outputs.CACHE_TAG_PI }} run: | docker buildx build \ --cache-from=type=registry,ref=${CACHE_TAG_PI} \