Skip to content

Commit 828994d

Browse files
committed
Used Docker PAT to login
1 parent 27e3d33 commit 828994d

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.github/workflows/deploy.yaml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,17 @@ jobs:
88
build:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v4
12-
- run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
13-
- run: docker build -t mmaksi/react-nginx -f Dockerfile.dev .
14-
- run: docker run -e CI=true mmaksi/react-nginx npm run test
11+
- name: Checkout code
12+
uses: actions/checkout@v4
13+
14+
- name: Log in to Docker Hub
15+
uses: docker/login-action@v3
16+
with:
17+
username: ${{ secrets.DOCKER_USERNAME }}
18+
password: ${{ secrets.DOCKER_TOKEN }}
19+
20+
- name: Build Docker image
21+
run: docker build -t mmaksi/react-nginx -f Dockerfile.dev .
22+
23+
- name: Run tests in container
24+
run: docker run -e CI=true mmaksi/react-nginx npm run test

0 commit comments

Comments
 (0)