Skip to content

Commit c0b4f87

Browse files
authored
Rename token input to gh_token and update Docker build action to v6 (#39)
* Rename token input to gh_token and update Docker build action to v6
1 parent 0d58ad7 commit c0b4f87

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

.github/actions/docker-build/action.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ inputs:
2424
required: true
2525
default: ./Dockerfile
2626
description: The docker file to use when building the image
27-
token:
27+
gh_token:
2828
required: false
2929
description: A token used by the Dockerfile
3030

@@ -67,15 +67,13 @@ runs:
6767
echo ########################################
6868
6969
- name: Build and push Docker image
70-
env:
71-
TOKEN: ${{ inputs.TOKEN }}
72-
uses: docker/build-push-action@v5
70+
uses: docker/build-push-action@v6
7371
with:
7472
context: ${{ inputs.context }}
7573
cache-from: type=gha
7674
cache-to: type=gha,mode=max
77-
build-args: |
78-
TOKEN=${{ inputs.token }}
75+
secrets: |
76+
"gh_token=${{ inputs.gh_token }}"
7977
file: ${{ inputs.dockerfile }}
8078
push: ${{ inputs.push_image }}
8179
tags: ${{ steps.metadata.outputs.tags }}

0 commit comments

Comments
 (0)