Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit 38aff8d

Browse files
committed
FF-52 used secrets, and login-action
1 parent 301dbdd commit 38aff8d

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.github/workflows/latestRelease.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@ jobs:
2424
name: Upload CodeCov.
2525
run: bash <(curl -s https://codecov.io/bash) -Z
2626
-
27-
name: Log into DockerHub Registry
28-
run: echo "${{ secrets.DOCKER_PW }}" | docker login -u filefighter --password-stdin
27+
name: Login to DockerHub
28+
uses: docker/login-action@v1
29+
with:
30+
username: ${{ secrets.DOCKER_USER }}
31+
password: ${{ secrets.DOCKER_PW }}
2932
-
3033
name: Push Image to DockerHub Registry
3134
run: |

.github/workflows/stableRelease.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,12 @@ jobs:
2222
-
2323
name: Build Docker Image
2424
run: mvn spring-boot:build-image -f pom.xml -P prod
25-
-
26-
name: Log into DockerHub Registry
27-
run: echo "${{ secrets.DOCKER_PW }}" | docker login -u filefighter --password-stdin
25+
-
26+
name: Login to DockerHub
27+
uses: docker/login-action@v1
28+
with:
29+
username: ${{ secrets.DOCKER_USER }}
30+
password: ${{ secrets.DOCKER_PW }}
2831
-
2932
name: Generate Image Tag from Git Tag
3033
id: vars

0 commit comments

Comments
 (0)