forked from Ashrockzzz2003/placement_tracker_web
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 935 Bytes
/
ci-cd.yml
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
name: CI/CD
on:
push:
branches: [ main, v2 ]
pull_request:
branches: [ main, v2 ]
workflow_dispatch:
jobs:
prepare:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Fetch Dockerfile
run: |
curl -O https://raw.githubusercontent.com/Abhinav-ark/placement_tracker_cicd/main/dockerfiles/placement_tracker_web/Dockerfile
- name: Cache Dockerfile
uses: actions/cache@v3
with:
path: ./Dockerfile
key: ${{ runner.os }}-dockerfile-${{ github.sha }}
main-workflow:
needs: prepare
uses: Abhinav-ark/placement_tracker_cicd/.github/workflows/placement_tracker_web_deploy.yml@main
with:
branch: ${{ github.ref }}
secrets:
BACKEND_URL: ${{ secrets.BACKEND_URL }}
WIF_PROVIDER: ${{ secrets.WIF_PROVIDER }}
WIF_SERVICE_ACCOUNT: ${{ secrets.WIF_SERVICE_ACCOUNT }}