Skip to content

Commit cc700b1

Browse files
authored
Add parameter check step in Docker workflow
Added a step to check parameters before building the Docker image.
1 parent 5af3a9c commit cc700b1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/docker-image.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ jobs:
2222
username: ${{ secrets.DOCKERHUB_USERNAME }}
2323
password: ${{ secrets.DOCKERHUB_TOKEN }}
2424

25+
- name: Check parameter
26+
run: echo "Date " $(date +%Y%m%d) \\
27+
echo "Image " ${{ vars.DOCKERHUB_IMAGE_NAME }} \\
28+
docker buildx build --help
29+
30+
2531
- name: Build the Docker image
2632
run: docker build --file Dockerfile \\
2733
--platform linux/amd64,linux/arm64 \\

0 commit comments

Comments
 (0)