Skip to content

Commit

Permalink
Explictly fetch whole history when building Docker image
Browse files Browse the repository at this point in the history
Otherwise, actions/checkout@v2 will only fetch the latest commit,
leaving `git describe` unable to produce a useful version, cf.
actions/checkout#100 and
actions/checkout#217
  • Loading branch information
simu committed Jun 15, 2020
1 parent 040c1ff commit d17b533
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: "0"
- name: Fetch tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Build image
env:
VERSION: v0.0.0+test
run: make docker
build-component-test:
runs-on: ubuntu-latest
Expand Down

0 comments on commit d17b533

Please sign in to comment.