mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-14 03:41:14 +00:00
chore(ci): set composite action outputs
This commit is contained in:
39
.github/actions/docker-tags/action.yml
vendored
39
.github/actions/docker-tags/action.yml
vendored
@@ -1,12 +1,49 @@
|
|||||||
name: 'docker-tags'
|
name: 'docker-tags'
|
||||||
description: 'Set Docker default Tag environment variables'
|
description: 'Set Docker default Tag environment variables'
|
||||||
# inputs:
|
# 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:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: Extract branch name
|
- name: Extract branch name
|
||||||
shell: bash
|
shell: bash
|
||||||
|
id: tags
|
||||||
env:
|
env:
|
||||||
BRANCH_NAME_INPUT: ${{ github.event.inputs.branch_name }}
|
BRANCH_NAME_INPUT: ${{ github.event.inputs.branch_name }}
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
5
.github/workflows/docker-build.yml
vendored
5
.github/workflows/docker-build.yml
vendored
@@ -66,7 +66,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
TAG: ${{ steps.tags.outputs.TAG }}
|
TAG: ${{ steps.tags.outputs.TAG }}
|
||||||
run: |
|
run: |
|
||||||
docker build -t ${IMAGE_NAME}:${TAG} .
|
docker build -t ${CACHE_IMAGE}:${TAG} .
|
||||||
|
|
||||||
- name: Build ARMHF image without cache
|
- name: Build ARMHF image without cache
|
||||||
if: github.event_name == 'schedule'
|
if: github.event_name == 'schedule'
|
||||||
@@ -94,6 +94,9 @@ jobs:
|
|||||||
- name: Build ARMHF image with cache
|
- name: Build ARMHF image with cache
|
||||||
if: github.event_name != 'schedule'
|
if: github.event_name != 'schedule'
|
||||||
# disable provenance due to https://github.com/docker/buildx/issues/1509
|
# 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: |
|
run: |
|
||||||
docker buildx build \
|
docker buildx build \
|
||||||
--cache-from=type=registry,ref=${CACHE_TAG_PI} \
|
--cache-from=type=registry,ref=${CACHE_TAG_PI} \
|
||||||
|
|||||||
Reference in New Issue
Block a user