Skip to content

Commit 74642e9

Browse files
committed
fixing deployment issue
1 parent 2490475 commit 74642e9

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/prod.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,16 @@ jobs:
1212
- name: Checkout Repository
1313
uses: actions/checkout@v3
1414

15-
- name: Build and deploy
15+
- name: Log in to Docker Hub
16+
uses: docker/login-action@v2
17+
with:
18+
username: ${{ secrets.DOCKER_USERNAME }}
19+
password: ${{ secrets.DOCKER_PASSWORD }}
20+
21+
- name: Build and push image
1622
env:
1723
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
18-
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
1924
run: |
20-
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
2125
echo "Building and pushing docker image"
2226
docker build -t $DOCKER_USERNAME/autoplan:latest .
2327
docker push $DOCKER_USERNAME/autoplan:latest

0 commit comments

Comments
 (0)