Update README.md. Closes #130 #27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Push Notification Service Docker Image | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build-and-push: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| - name: Log in to Docker Hub | |
| uses: docker/login-action@v2 | |
| with: | |
| username: ${{ secrets.DOCKER_USERNAME }} | |
| password: ${{ secrets.DOCKER_PASSWORD }} | |
| - name: Build and push Notification Service Docker image | |
| run: | | |
| cd ecommerce-platform-notification-service | |
| docker build -t ${{ secrets.DOCKER_USERNAME }}/ecommerce-platform-notification-service:latest . | |
| docker push ${{ secrets.DOCKER_USERNAME }}/ecommerce-platform-notification-service:latest | |
| - name: Logout from Docker Hub | |
| run: docker logout |