change metrics middleware #6
This file contains 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, Deploy, and Verify Docker Images | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-deploy-verify: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Build and push frontend image | |
run: | | |
docker build -f docker/Dockerfile.frontend -t ayush272002/zapier-frontend:latest . | |
docker push ayush272002/zapier-frontend:latest | |
- name: Build and push primary-backend image | |
run: | | |
docker build -f docker/Dockerfile.primary-backend -t ayush272002/zapier-primary-backend:latest . | |
docker push ayush272002/zapier-primary-backend:latest | |
- name: Build and push hooks image | |
run: | | |
docker build -f docker/Dockerfile.hooks -t ayush272002/zapier-hooks:latest . | |
docker push ayush272002/zapier-hooks:latest | |
- name: Build and push processor image | |
run: | | |
docker build -f docker/Dockerfile.processor -t ayush272002/zapier-processor:latest . | |
docker push ayush272002/zapier-processor:latest | |
- name: Build and push worker image | |
run: | | |
docker build -f docker/Dockerfile.worker -t ayush272002/zapier-worker:latest . | |
docker push ayush272002/zapier-worker:latest | |
- name: Verify frontend image by pulling | |
run: | | |
docker pull ayush272002/zapier-frontend:latest | |
docker images | grep ayush272002/zapier-frontend | |
- name: Verify primary-backend image by pulling | |
run: | | |
docker pull ayush272002/zapier-primary-backend:latest | |
docker images | grep ayush272002/zapier-primary-backend | |
- name: Verify hooks image by pulling | |
run: | | |
docker pull ayush272002/zapier-hooks:latest | |
docker images | grep ayush272002/zapier-hooks | |
- name: Verify processor image by pulling | |
run: | | |
docker pull ayush272002/zapier-processor:latest | |
docker images | grep ayush272002/zapier-processor | |
- name: Verify worker image by pulling | |
run: | | |
docker pull ayush272002/zapier-worker:latest | |
docker images | grep ayush272002/zapier-worker |