Skip to content

Commit 1482e45

Browse files
committed
chore: use official action
1 parent 5aacd67 commit 1482e45

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/0-core-test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ jobs:
1818
node-version: ${{ matrix.node-version }}
1919
cache: 'npm'
2020
- name: Log in to Docker Hub
21-
run: echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin
21+
uses: docker/login-action@v3
22+
with:
23+
username: ${{ secrets.DOCKERHUB_USERNAME }}
24+
password: ${{ secrets.DOCKERHUB_TOKEN }}
2225
- name: Start Redis
2326
uses: supercharge/[email protected]
2427
- name: Install modules

.github/workflows/automated.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v3
1414
- name: Log in to Docker Hub
15-
run: echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin
15+
uses: docker/login-action@v3
16+
with:
17+
username: ${{ secrets.DOCKERHUB_USERNAME }}
18+
password: ${{ secrets.DOCKERHUB_TOKEN }}
1619
- name: Start Redis
1720
uses: supercharge/[email protected]
1821
- name: Use Node.js 22

0 commit comments

Comments
 (0)