Skip to content

Commit 0ed3435

Browse files
committed
Refactor Docker Buildx setup location in workflow
Moved Docker Buildx setup action to occur after Docker Hub login. This ensures seamless integration and possibly resolves potential timing issues during the workflow execution.
1 parent d66cffa commit 0ed3435

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/actions/build/action.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,18 @@ runs:
2828
- name: Checkout code
2929
uses: actions/checkout@v3
3030

31-
- name: Set up Docker Buildx
32-
uses: docker/setup-buildx-action@v2
33-
with:
34-
driver-opts: image=hyperskill.azurecr.io/moby/buildkit:buildx-stable-1
35-
3631
- name: Login to Docker Hub
3732
uses: docker/login-action@v2
3833
with:
3934
registry: hyperskill.azurecr.io
4035
username: ${{ inputs.username }}
4136
password: ${{ inputs.password }}
4237

38+
- name: Set up Docker Buildx
39+
uses: docker/setup-buildx-action@v2
40+
with:
41+
driver-opts: image=hyperskill.azurecr.io/moby/buildkit:buildx-stable-1
42+
4343
- if: inputs.add_hash == 'true'
4444
run: |
4545
hash=$(find ${{ inputs.path }} -type f -print0 | sort -z | xargs -0 sha1sum | sha1sum)

0 commit comments

Comments
 (0)