Skip to content

Commit 994e13e

Browse files
authored
Merge pull request #7 from Sauer02/dev
use secrets directly
2 parents 17a57be + 8868e80 commit 994e13e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/nextjs.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ on:
1010
- closed
1111

1212
env:
13-
DOCKER_USER: ${{secrets.DOCKER_USER}}
14-
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
15-
REPO_NAME: ${{secrets.REPO_NAME}}
1613
# Use docker.io for Docker Hub if empty
1714
REGISTRY: docker.io
1815
# github.repository as <account>/<repo>
@@ -95,8 +92,8 @@ jobs:
9592
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
9693
with:
9794
registry: ${{ env.REGISTRY }}
98-
username: ${{ env.DOCKER_USER }}
99-
password: ${{ env.DOCKER_PASSWORD }}
95+
username: ${{ secrets.DOCKER_USER }}
96+
password: ${{ secrets.DOCKER_PASSWORD }}
10097

10198
# Extract metadata (tags, labels) for Docker
10299
# https://github.com/docker/metadata-action

0 commit comments

Comments
 (0)