Create main.yml

Adding CI to MAGIC
This commit is contained in:
Sai Charan Lanka 2021-08-23 21:21:25 +05:30 committed by Tim Edwards
parent e7bc994224
commit 13b1c94305
1 changed files with 36 additions and 0 deletions

36
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,36 @@
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Runs a set of commands using the runners shell
#- name: Logging into Dockerhub
# run: docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Pulling the docker image
run: docker pull vezzal/vezzal:v0
- name: Start the container with the docker image
run: docker run -id --name test_netgen vezzal/vezzal:v0 bash | exit
- name: Run the testing on the container and send the mail
run: docker exec test_netgen /vezzal/test_netgen.sh "lankasaicharan123@gmail.com" ${{ secrets.MAILING_KEY }}