-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (41 loc) · 1.12 KB
/
main.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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