mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
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:
3
.github/workflows/docker-image.yml
vendored
3
.github/workflows/docker-image.yml
vendored
@@ -15,6 +15,8 @@ jobs:
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
-
|
||||
name: Prepare
|
||||
id: prep
|
||||
@@ -72,6 +74,7 @@ jobs:
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/amd64
|
||||
push: ${{ steps.have_credentials.outputs.access }}
|
||||
tags: ${{ steps.prep.outputs.tags }}
|
||||
|
||||
Reference in New Issue
Block a user