We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 310537d + ed28fbd commit 03cfca6Copy full SHA for 03cfca6
.github/workflows/docker-image.yml
@@ -23,8 +23,7 @@ jobs:
23
- name: Set output variables
24
id: vars
25
run: |
26
- echo "::set-output name=cgcpp_version::$(python setup.py --version)"
27
- echo "::set-output name=docker_tag::$($(python setup.py --version) -replace '\.\w+$')"
+ echo "docker_tag=$('${{ github.ref_name }}' -replace '^v', '' -replace '\.\w+$', '')" >> $GITHUB_OUTPUT
28
29
- name: Build Docker image
30
run: docker build . --file Dockerfile --tag ababak/cgcpp:${{ steps.vars.outputs.docker_tag }}
0 commit comments