We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a04149 commit acdf52eCopy full SHA for acdf52e
1 file changed
.github/workflows/publish.yml
@@ -20,7 +20,9 @@ jobs:
20
21
- name: Extract version
22
id: extract_version
23
- run: echo "VERSION=$(grep 'version =' pyproject.toml | sed -e 's/version = "\(.*\)"/\1/')-$(echo $GITHUB_SHA | cut -c1-7)" >> $GITHUB_ENV
+ run: |
24
+ VERSION=$(grep 'version =' pyproject.toml | sed -e 's/version = "\(.*\)"/\1/')-$(echo $GITHUB_SHA | cut -c1-7)
25
+ echo "VERSION=$VERSION" >> "$GITHUB_OUTPUT"
26
27
- name: Log in to GitHub Container Registry
28
uses: docker/login-action@v3
@@ -36,4 +38,4 @@ jobs:
36
38
push: true
37
39
tags: |
40
ghcr.io/sysdiglabs/sysdig-mcp-server:latest
- ghcr.io/sysdiglabs/sysdig-mcp-server:v${{ env.VERSION }}
41
+ ghcr.io/sysdiglabs/sysdig-mcp-server:v${{ steps.extract_version.outputs.VERSION }}
0 commit comments