File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 5
5
types :
6
6
- released
7
7
workflow_dispatch :
8
+ inputs :
9
+ version :
10
+ description : The version to publish.
11
+ type : string
12
+ required : true
8
13
9
14
permissions :
10
15
packages : write # For pushing to ghcr.io.
17
22
-
uses :
robinraju/[email protected]
18
23
with :
19
24
repository : " coder/code-marketplace"
20
- tag : ${{ github.ref_name }}
25
+ tag : ${{ github.event.inputs.version || github. ref_name }}
21
26
fileName : " code-marketplace-linux-*"
22
27
out-file-path : " bin"
23
28
30
35
- uses : docker/setup-qemu-action@v2
31
36
- uses : docker/setup-buildx-action@v2
32
37
- run : docker buildx bake -f ./docker-bake.hcl --push
38
+ env :
39
+ VERSION : ${{ github.event.inputs.version || github.ref_name }}
Original file line number Diff line number Diff line change 1
- variable "GITHUB_REF_NAME " {}
1
+ variable "VERSION " {}
2
2
3
3
group "default" {
4
4
targets = [" code-marketplace" ]
@@ -7,7 +7,7 @@ group "default" {
7
7
target "code-marketplace" {
8
8
dockerfile = " ./Dockerfile"
9
9
tags = [
10
- " ghcr.io/coder/code-marketplace:${ GITHUB_REF_NAME } " ,
10
+ " ghcr.io/coder/code-marketplace:${ VERSION } " ,
11
11
]
12
12
platforms = [" linux/amd64" , " linux/arm64" ]
13
13
}
You can’t perform that action at this time.
0 commit comments