Ensure docker image build has history for version resolving (#1162)

With the switch to using git to resolve the version it's necessary to
ensure the history is available in the clone during the github action.

Add the `context: .` setting to work around a bug in the docker github
action. Based on docker/build-push-action#162
This commit is contained in:
Darragh Bailey
2020-10-27 09:55:08 +00:00
committed by GitHub
parent 966ef2a534
commit 4adc24b8e6

View File

@@ -15,6 +15,8 @@ jobs:
- -
name: Checkout name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
with:
fetch-depth: 0
- -
name: Prepare name: Prepare
id: prep id: prep
@@ -72,6 +74,7 @@ jobs:
id: docker_build id: docker_build
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
with: with:
context: .
platforms: linux/amd64 platforms: linux/amd64
push: ${{ steps.have_credentials.outputs.access }} push: ${{ steps.have_credentials.outputs.access }}
tags: ${{ steps.prep.outputs.tags }} tags: ${{ steps.prep.outputs.tags }}