File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Docker
22
33on :
4- push :
5- tags :
6- - ' v[0-9]+.[0-9]+.[0-9]+'
4+ # push:
5+ # tags:
6+ # - 'v[0-9]+.[0-9]+.[0-9]+'
77 workflow_dispatch :
88
99jobs :
@@ -14,12 +14,12 @@ jobs:
1414 - name : Checkout
1515 uses : actions/checkout@v4
1616
17- # - name: Extract version from Cargo.toml
18- # id: cargo-version
19- # run: |
20- # VERSION=v$(grep -m1 "^version" Cargo.toml | cut -d'"' -f2)
21- # echo "VERSION=$VERSION" >> $GITHUB_ENV
22- # echo "version=$VERSION" >> $GITHUB_OUTPUT
17+ - name : Extract version from Cargo.toml
18+ id : cargo-version
19+ run : |
20+ VERSION=v$(grep -m1 "^version" Cargo.toml | cut -d'"' -f2)
21+ echo "VERSION=$VERSION" >> $GITHUB_ENV
22+ echo "version=$VERSION" >> $GITHUB_OUTPUT
2323
2424 - name : Set up QEMU
2525 uses : docker/setup-qemu-action@v3
4242 push : true
4343 tags : |
4444 ghcr.io/gyulyvgc/sniffnet:latest
45- ghcr.io/gyulyvgc/sniffnet:${{ github.ref_name }}
45+ ghcr.io/gyulyvgc/sniffnet:${{ env.VERSION }}
46+ # ghcr.io/gyulyvgc/sniffnet:${{ github.ref_name }}
You can’t perform that action at this time.
0 commit comments