We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd36745 commit 96c8521Copy full SHA for 96c8521
1 file changed
.github/workflows/build.yml
@@ -24,12 +24,18 @@ jobs:
24
- name: Set up Docker Buildx
25
uses: docker/setup-buildx-action@v3
26
27
+ - name: Extract version from Dockerfile
28
+ id: version
29
+ run: |
30
+ VERSION=$(grep -oP 'p\K[\d.]+' Dockerfile | tail -1)
31
+ echo "version=v${VERSION}" >> $GITHUB_OUTPUT
32
+
33
- name: Build and push
34
uses: docker/build-push-action@v5
35
with:
36
context: .
37
push: true
38
platforms: linux/amd64
39
tags: |
- bitcryptic/pi-network-node:v22.1
40
+ bitcryptic/pi-network-node:${{ steps.version.outputs.version }}
41
bitcryptic/pi-network-node:latest
0 commit comments