Skip to content

Commit 00f97bd

Browse files
committed
fix: publishing version
1 parent 2ce7bf7 commit 00f97bd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.gitlab-ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ create-operator-json:
166166
artifacts: true
167167
script:
168168
- |
169-
export CI_COMMIT_TAG="operator/v1.0.0"
169+
export version="${CI_COMMIT_TAG#operator/}"
170170
cat > operator.json << EOF
171171
{
172172
"skyhook": {
@@ -181,7 +181,7 @@ create-operator-json:
181181
"artifacts": [
182182
{
183183
"name": "operator",
184-
"version": "${CI_COMMIT_TAG#operator/}",
184+
"version": "${version}",
185185
"type": "container"
186186
}
187187
]
@@ -200,7 +200,7 @@ create-agent-json:
200200
artifacts: true
201201
script:
202202
- |
203-
export CI_COMMIT_TAG="agent/v1.0.0"
203+
export version="${CI_COMMIT_TAG#agent/}"
204204
cat > agent.json << EOF
205205
{
206206
"skyhook": {
@@ -215,7 +215,7 @@ create-agent-json:
215215
"artifacts": [
216216
{
217217
"name": "agent",
218-
"version": "${CI_COMMIT_TAG#agent/}",
218+
"version": "${version}",
219219
"type": "container"
220220
}
221221
]

0 commit comments

Comments
 (0)