Skip to content

Commit f13e076

Browse files
authored
Use relative path for Dockerfile copies (#412)
In order to align with requirements of the official docker library images' build process. docker-library/official-images#17549 (comment)
1 parent 6c299a6 commit f13e076

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/actions/build-and-tag-locally/action.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ runs:
8484
- name: Build
8585
uses: docker/build-push-action@v6
8686
with:
87-
context: .
88-
file: ${{ inputs.distribution }}/Dockerfile
87+
context: ${{ inputs.distribution }}
8988
push: false
9089
load: true
9190
platforms: ${{ inputs.platform }}
@@ -203,8 +202,7 @@ runs:
203202
uses: docker/build-push-action@v6
204203
if: ${{ inputs.publish_image == 'true' && contains(fromJSON('["amd64","arm64"]'), steps.platform.outputs.display_name) }}
205204
with:
206-
context: .
207-
file: ${{ inputs.distribution }}/Dockerfile
205+
context: ${{ inputs.distribution }}
208206
push: true
209207
tags: ${{ inputs.registry_repository }}:${{ github.sha }}-${{ inputs.distribution }}
210208
cache-from: type=gha

alpine/Dockerfile

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

debian/Dockerfile

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)