Skip to content

Commit

Permalink
Add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasDorier committed Nov 20, 2020
1 parent 14a2be2 commit 09c3d7b
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 5 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This travis file relis on the following environment variable to configure on your travis repository settings:
# * DOCKERHUB_USER: A docker hub user where images will be pushed
# * DOCKERHUB_PASS: The password of the dockerhub user
# * DOCKERHUB_REPO: The docker repository to push to

name: CI

# Controls when the action 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:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

# Runs a single command using the runners shell
- name: Build and test
run: ./Build/buildtest.sh
5 changes: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# This travis file relis on the following environment variable to configure on your travis repository settings:
# * DOCKERHUB_USER: A docker hub user where images will be pushed
# * DOCKERHUB_PASS: The password of the dockerhub user
# * DOCKERHUB_REPO: The docker repository to push to


language: minimal
services:
Expand Down
2 changes: 1 addition & 1 deletion NDLC.sln
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Dockerfiles", "Dockerfiles"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "CI", "CI", "{B373E8BF-D73D-4D16-A5C7-696C44FD0FF6}"
ProjectSection(SolutionItems) = preProject
.travis.yml = .travis.yml
Build\buildtest.Dockerfile = Build\buildtest.Dockerfile
Build\buildtest.sh = Build\buildtest.sh
.github\workflows\main.yml = .github\workflows\main.yml
Build\makedocker.sh = Build\makedocker.sh
Build\makedockermanifest.sh = Build\makedockermanifest.sh
Build\utils.sh = Build\utils.sh
Expand Down

0 comments on commit 09c3d7b

Please sign in to comment.