Skip to content

Merge pull request #14 from mohamad-liyaghi/vendor-orders #74

Merge pull request #14 from mohamad-liyaghi/vendor-orders

Merge pull request #14 from mohamad-liyaghi/vendor-orders #74

Workflow file for this run

name: Academy Master Tests
on:
push:
branches: [main]
workflow_dispatch:
env:
REGISTRY: docker.io
IMAGE_NAME: ${{ secrets.DOCKERHUB_USERNAME }}/food_anywhere
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build Docker Image
uses: ./.github/actions/build
with:
image_name: ${{ env.IMAGE_NAME }}
registry: ${{ env.REGISTRY }}
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
test-on-docker:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Test On Docker
uses: ./.github/actions/test_docker
test-on-kubernetes:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Test On Kubernetes
uses: ./.github/actions/test_k8s
deploy:
needs: [ test-on-docker, test-on-kubernetes ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Deploy The Code
uses: ./.github/actions/deploy