Skip to content

Commit 9633626

Browse files
authored
Use docker login action
Signed-off-by: Ryan Baxter <[email protected]>
1 parent 972445d commit 9633626

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,12 @@ jobs:
4040
java-version: '17'
4141
distribution: 'temurin' # OpenJDK distribution
4242
cache: 'maven'
43-
44-
- name: Docker login
45-
env:
46-
DOCKER_HUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
47-
DOCKER_HUB_PASSWORD: ${{ secrets.DDOCKERHUB_TOKEN }}
48-
run: |
49-
echo "Logging to Dockerhub..."
50-
echo "$DOCKER_HUB_PASSWORD" | docker login -u "$DOCKER_HUB_USERNAME" --password-stdin
43+
44+
- name: Login to Docker Hub
45+
uses: docker/login-action@v3
46+
with:
47+
username: ${{ secrets.DOCKERHUB_USERNAME }}
48+
password: ${{ secrets.DDOCKERHUB_TOKEN }}
5149

5250
- name: Stop running Docker containers
5351
continue-on-error: true

0 commit comments

Comments
 (0)