Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
jackjieYYY committed Nov 3, 2023
1 parent 9bdad75 commit eb9d88a
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/autoDeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,15 @@ jobs:
- name: Build
run: npm run build

- name: Log in to Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Docker image
run: |
echo ${{ secrets.DOCKER_HUB_USERNAME }} | docker login --username $DOCKER_HUB_USERNAME --password-stdin
docker build -t closure-front .
docker tag closure-front $DOCKER_HUB_USERNAME/closure-front:latest
docker push $DOCKER_HUB_USERNAME/closure-front:latest
env:
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
DOCKER_HUB_ACCESS_TOKEN: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
with:
context: .
file: ./Dockerfile
push: true

0 comments on commit eb9d88a

Please sign in to comment.