Skip to content

Commit 8796455

Browse files
authored
Merge pull request docker#1272 from crazy-max/update-readme
readme: move login step up
2 parents 48aba3b + 750f367 commit 8796455

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

README.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,18 @@ jobs:
6060
docker:
6161
runs-on: ubuntu-latest
6262
steps:
63+
-
64+
name: Login to Docker Hub
65+
uses: docker/login-action@v3
66+
with:
67+
username: ${{ vars.DOCKERHUB_USERNAME }}
68+
password: ${{ secrets.DOCKERHUB_TOKEN }}
6369
-
6470
name: Set up QEMU
6571
uses: docker/setup-qemu-action@v3
6672
-
6773
name: Set up Docker Buildx
6874
uses: docker/setup-buildx-action@v3
69-
-
70-
name: Login to Docker Hub
71-
uses: docker/login-action@v3
72-
with:
73-
username: ${{ secrets.DOCKERHUB_USERNAME }}
74-
password: ${{ secrets.DOCKERHUB_TOKEN }}
7575
-
7676
name: Build and push
7777
uses: docker/build-push-action@v6
@@ -132,18 +132,18 @@ jobs:
132132
-
133133
name: Checkout
134134
uses: actions/checkout@v4
135+
-
136+
name: Login to Docker Hub
137+
uses: docker/login-action@v3
138+
with:
139+
username: ${{ vars.DOCKERHUB_USERNAME }}
140+
password: ${{ secrets.DOCKERHUB_TOKEN }}
135141
-
136142
name: Set up QEMU
137143
uses: docker/setup-qemu-action@v3
138144
-
139145
name: Set up Docker Buildx
140146
uses: docker/setup-buildx-action@v3
141-
-
142-
name: Login to Docker Hub
143-
uses: docker/login-action@v3
144-
with:
145-
username: ${{ secrets.DOCKERHUB_USERNAME }}
146-
password: ${{ secrets.DOCKERHUB_TOKEN }}
147147
-
148148
name: Build and push
149149
uses: docker/build-push-action@v6

0 commit comments

Comments
 (0)