Skip to content

Commit a91ef4c

Browse files
committed
checkout code during docker build since we need .git for versioning
1 parent 56b7ed2 commit a91ef4c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/python.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ jobs:
7979
needs: test
8080
if: ${{ github.ref_type == 'tag'}}
8181
steps:
82+
-
83+
name: Checkout
84+
uses: actions/checkout@v2
85+
with:
86+
fetch-depth: 0
8287
-
8388
name: Set up Docker Buildx
8489
uses: docker/setup-buildx-action@v2
@@ -92,5 +97,6 @@ jobs:
9297
name: Build and push
9398
uses: docker/build-push-action@v3
9499
with:
100+
context: .
95101
push: true
96102
tags: imrehg/linkhub_prometheus_exporter:latest,imrehg/linkhub_prometheus_exporter:${{github.ref_name}}

0 commit comments

Comments
 (0)