Skip to content

Commit 4f3b55d

Browse files
committed
CI/CD: fix docker.yml
1 parent d463a71 commit 4f3b55d

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

.github/workflows/docker.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Docker
22

33
on:
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

99
jobs:
@@ -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
@@ -42,4 +42,5 @@ jobs:
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 }}

0 commit comments

Comments
 (0)