Skip to content

Commit

Permalink
Refactor Docker Build and Push
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwenyihust committed Nov 24, 2023
1 parent b257874 commit 2e3fdfb
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,8 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Docker Build
- name: Docker Build & Push
run: |
cd examples/word-count
ls -la
ls -la target
docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/word-count:latest .
- name: Docker Push
run: |
cd examples/word-count
docker tag word-count:latest ${{ secrets.DOCKERHUB_USERNAME }}/word-count:latest
docker push ${{ secrets.DOCKERHUB_USERNAME }}/word-count:latest

0 comments on commit 2e3fdfb

Please sign in to comment.