Skip to content

Commit 67774c7

Browse files
committed
chore(ci): set composite action outputs
1 parent 44b65da commit 67774c7

File tree

2 files changed

+42
-2
lines changed

2 files changed

+42
-2
lines changed

.github/actions/docker-tags/action.yml

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,49 @@
11
name: 'docker-tags'
22
description: 'Set Docker default Tag environment variables'
33
# inputs:
4-
# outputs:
4+
outputs:
5+
BRANCH_NAME:
6+
description: 'The branch name'
7+
value: ${{ steps.tags.outputs.BRANCH_NAME }}
8+
TAG:
9+
description: 'The Docker tag'
10+
value: ${{ steps.tags.outputs.TAG }}
11+
TAG_PLOT:
12+
description: 'The Docker tag for the plot'
13+
value: ${{ steps.tags.outputs.TAG_PLOT }}
14+
TAG_FREQAI:
15+
description: 'The Docker tag for the freqai'
16+
value: ${{ steps.tags.outputs.TAG_FREQAI }}
17+
TAG_FREQAI_RL:
18+
description: 'The Docker tag for the freqai_rl'
19+
value: ${{ steps.tags.outputs.TAG_FREQAI_RL }}
20+
TAG_FREQAI_TORCH:
21+
description: 'The Docker tag for the freqai_torch'
22+
value: ${{ steps.tags.outputs.TAG_FREQAI_TORCH }}
23+
TAG_ARM:
24+
description: 'The Docker tag for the arm'
25+
value: ${{ steps.tags.outputs.TAG_ARM }}
26+
TAG_PLOT_ARM:
27+
description: 'The Docker tag for the plot arm'
28+
value: ${{ steps.tags.outputs.TAG_PLOT_ARM }}
29+
TAG_FREQAI_ARM:
30+
description: 'The Docker tag for the freqai arm'
31+
value: ${{ steps.tags.outputs.TAG_FREQAI_ARM }}
32+
TAG_FREQAI_RL_ARM:
33+
description: 'The Docker tag for the freqai_rl arm'
34+
value: ${{ steps.tags.outputs.TAG_FREQAI_RL_ARM }}
35+
TAG_PI:
36+
description: 'The Docker tag for the pi'
37+
value: ${{ steps.tags.outputs.TAG_PI }}
38+
CACHE_TAG_PI:
39+
description: 'The Docker cache tag for the pi'
40+
value: ${{ steps.tags.outputs.CACHE_TAG_PI }}
541
runs:
642
using: "composite"
743
steps:
844
- name: Extract branch name
945
shell: bash
46+
id: tags
1047
env:
1148
BRANCH_NAME_INPUT: ${{ github.event.inputs.branch_name }}
1249
run: |

.github/workflows/docker-build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
env:
6767
TAG: ${{ steps.tags.outputs.TAG }}
6868
run: |
69-
docker build -t ${IMAGE_NAME}:${TAG} .
69+
docker build -t ${CACHE_IMAGE}:${TAG} .
7070
7171
- name: Build ARMHF image without cache
7272
if: github.event_name == 'schedule'
@@ -94,6 +94,9 @@ jobs:
9494
- name: Build ARMHF image with cache
9595
if: github.event_name != 'schedule'
9696
# disable provenance due to https://github.com/docker/buildx/issues/1509
97+
env:
98+
TAG_PI: ${{ steps.tags.outputs.TAG_PI }}
99+
CACHE_TAG_PI: ${{ steps.tags.outputs.CACHE_TAG_PI }}
97100
run: |
98101
docker buildx build \
99102
--cache-from=type=registry,ref=${CACHE_TAG_PI} \

0 commit comments

Comments
 (0)