We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8f8c95 commit 9877d88Copy full SHA for 9877d88
.github/workflows/dogfood.yaml
@@ -21,6 +21,14 @@ jobs:
21
id: branch-name
22
uses: tj-actions/branch-names@v5.4
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
+
32
- name: Set up QEMU
33
uses: docker/setup-qemu-action@v2
34
@@ -38,6 +46,6 @@ jobs:
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
0 commit comments