Skip to content

Commit 133e6e1

Browse files
Update release-tag.yml
Trying to make dockerhub publishing work with inspiration from this example: https://docs.docker.com/build/ci/github-actions/multi-platform/ * Set `with.context: .` * bump step versions It fails with the following error ``` insufficient_scope: authorization failed ``` Which led me to this thread: docker/build-push-action#160
1 parent 4c59335 commit 133e6e1

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/release-tag.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Set up QEMU
13-
uses: docker/setup-qemu-action@v1
13+
uses: docker/setup-qemu-action@v2
1414

1515
- name: Set up Docker Buildx
16-
uses: docker/setup-buildx-action@v1
16+
uses: docker/setup-buildx-action@v2
1717

1818
- name: Login to DockerHub
19-
uses: docker/login-action@v1
19+
uses: docker/login-action@v2
2020
with:
2121
username: ${{ secrets.DOCKERHUB_USERNAME }}
2222
password: ${{ secrets.DOCKERHUB_TOKEN }} # This is not the actual password of the user, just a token
@@ -27,8 +27,9 @@ jobs:
2727

2828
- name: Build and push
2929
id: docker_build
30-
uses: docker/build-push-action@v2
30+
uses: docker/build-push-action@v4
3131
with:
32+
context: .
3233
platforms: linux/amd64,linux/arm64
3334
push: true
3435
tags: spotify/techdocs:${{ steps.get_version.outputs.VERSION }}

0 commit comments

Comments
 (0)