Skip to content

Commit c2713cb

Browse files
committed
Add login inside main gh action
1 parent 458a974 commit c2713cb

1 file changed

Lines changed: 8 additions & 11 deletions

File tree

.github/workflows/build-and-push.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,7 @@ on:
44
workflow_dispatch:
55

66
jobs:
7-
login:
8-
runs-on: ubuntu-latest
9-
steps:
10-
- name: Login to Docker Hub
11-
uses: docker/login-action@v3
12-
with:
13-
username: ${{ vars.DOCKERHUB_USERNAME }}
14-
password: ${{ secrets.DOCKERHUB_TOKEN }}
15-
16-
build:
7+
build-publish:
178
runs-on: ubuntu-latest
189
steps:
1910
- name: Checkout repo
@@ -34,5 +25,11 @@ jobs:
3425
- name: Show builds
3526
run: docker images
3627

28+
- name: Login to Docker Hub
29+
uses: docker/login-action@v3
30+
with:
31+
username: ${{ vars.DOCKERHUB_USERNAME }}
32+
password: ${{ secrets.DOCKERHUB_TOKEN }}
33+
3734
# - name: Tag and publish
38-
# run: ./dev/arm64/update-tags-and-push-to-dockerhub.sh
35+
# run: ./dev/arm64/update-tags-and-push-to-dockerhub.sh

0 commit comments

Comments
 (0)