File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 21
21
id : branch-name
22
22
uses : tj-actions/branch-names@v5.4
23
23
24
+ - name : " Branch name to Docker tag name"
25
+ id : docker-tag-name
26
+ run : |
27
+ tag=${{ steps.branch-name.outputs.current_branch }}
28
+ # Replace / with --, e.g. user/feature => user--feature.
29
+ tag=${tag//\//--}
30
+ echo "::set-output name=tag::${tag}"
31
+
24
32
- name : Set up QEMU
25
33
uses : docker/setup-qemu-action@v2
26
34
38
46
with :
39
47
context : " {{defaultContext}}:dogfood"
40
48
push : true
41
- tags : " codercom/oss-dogfood:${{ steps.branch- name.outputs.current_branch }},codercom/oss-dogfood:latest"
49
+ tags : " codercom/oss-dogfood:${{ steps.docker-tag- name.outputs.tag }},codercom/oss-dogfood:latest"
42
50
cache-from : type=registry,ref=codercom/oss-dogfood:latest
43
51
cache-to : type=inline
You can’t perform that action at this time.
0 commit comments