Added healthcheck for elastic. #11
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: Docker Build and Push | |
| on: | |
| push: | |
| branches: | |
| - master # Run the workflow on pushes to the main branch | |
| jobs: | |
| build-and-push: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v2 | |
| - name: Log in to Docker Hub | |
| uses: docker/login-action@v2 | |
| with: | |
| username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
| password: ${{ secrets.DOCKER_HUB_PASSWORD }} | |
| - name: Build and push Docker image | |
| run: | | |
| docker build -t ${{ secrets.DOCKER_HUB_USERNAME }}/cloudscan:${{ github.sha }} -f ingest/Dockerfile ingest | |
| docker push ${{ secrets.DOCKER_HUB_USERNAME }}/cloudscan:${{ github.sha }} | |
| docker tag ${{ secrets.DOCKER_HUB_USERNAME }}/cloudscan:${{ github.sha }} ${{ secrets.DOCKER_HUB_USERNAME }}/cloudscan:latest | |
| docker push ${{ secrets.DOCKER_HUB_USERNAME }}/cloudscan:latest |