diff --git a/.github/workflows/sang.yml b/.github/workflows/sang.yml new file mode 100644 index 00000000..03e3098f --- /dev/null +++ b/.github/workflows/sang.yml @@ -0,0 +1,26 @@ +name: Build and Push Docker Image + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build and Push Docker image + uses: docker/build-push-action@v5 + with: + push: true + tags: minhsang31th7/wordsmith:latest