This GitHub Actions workflow automates the process of building a Docker image and deploying it to an EC2 instance. It consists of two main jobs: build-docker
and run-on-ec2
.
name: OneHealth CI/CD
on:
// IMPORT ALL MATERIAL COMPONENTS | |
// #STEPS | |
// 1- Import this file as module in app.module.ts ==> import { MaterialModule } from './xyz/abc'; | |
// 2- Initialize it in imports:[] array ==> imports:[MaterialModule] | |
import { NgModule } from '@angular/core'; | |
// *************** FORM CONTROLS *************** | |
import {MatAutocompleteModule} from '@angular/material/autocomplete'; | |
import {MatCheckboxModule} from '@angular/material/checkbox'; | |
import {MatDatepickerModule} from '@angular/material/datepicker'; |
import { NgModule } from '@angular/core'; | |
import { CommonModule } from '@angular/common'; | |
import { MatAutocompleteModule } from '@angular/material/autocomplete'; | |
import { MatBadgeModule } from '@angular/material/badge'; | |
import { MatBottomSheetModule } from '@angular/material/bottom-sheet'; | |
import { MatButtonModule } from '@angular/material/button'; | |
import { MatButtonToggleModule } from '@angular/material/button-toggle'; | |
import { MatCardModule } from '@angular/material/card'; | |
import { MatCheckboxModule } from '@angular/material/checkbox'; | |
import { MatChipsModule } from '@angular/material/chips'; |