Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Commit 813d033

Browse files
authored
feat(eschool-graphql): add build pipelines (#242)
* add GitHub action pipeline * add azure devops pipeline * add pipeline build status badge to readme
1 parent 8a1e316 commit 813d033

4 files changed

Lines changed: 60 additions & 5 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
- uses: actions/setup-dotnet@v1
2323
with:
24-
dotnet-version: '5.0.100-preview.7.20366.6'
24+
dotnet-version: '5.0.x'
2525

2626
# If this run was triggered by a pull request event, then checkout
2727
# the head of the pull request instead of the merge commit.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: ESchool.GraphQL
2+
3+
on:
4+
push:
5+
paths:
6+
- "src/ApiGateways/eSchool.GraphQL/**"
7+
- ".github/workflows/eschool.graphql.yml"
8+
- "src/Libraries/OpenTelemetry/**"
9+
pull_request:
10+
paths:
11+
- "src/ApiGateways/eSchool.GraphQL/**"
12+
- ".github/workflows/eschool.graphql.yml"
13+
- "src/Libraries/OpenTelemetry/**"
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-16.04
18+
19+
steps:
20+
- uses: actions/checkout@v1
21+
22+
- name: set image tag
23+
run: echo "TAG=$(git tag --points-at HEAD | cut -c 2-4)" >> $GITHUB_ENV
24+
25+
- name: build
26+
run: docker-compose build eschool.graphql
27+
28+
- uses: azure/docker-login@v1
29+
if: startsWith(github.ref, 'refs/tags') || github.ref == 'refs/heads/master'
30+
with:
31+
login-server: index.docker.io
32+
username: ${{ secrets.DOCKERIO_USERNAME }}
33+
password: ${{ secrets.DOCKERIO_PASSWORD }}
34+
35+
- name: push image
36+
if: startsWith(github.ref, 'refs/tags') || github.ref == 'refs/heads/master'
37+
run: docker-compose push eschool.graphql

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
## Linux Build Status for 'master' branch
44

5-
| Enrolling.API | WebStatus |
6-
| :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
7-
| [![Build Status](https://dev.azure.com/OpenCodeFoundation/eSchool/_apis/build/status/Enrolling?branchName=master)](https://dev.azure.com/OpenCodeFoundation/eSchool/_build/latest?definitionId=4&branchName=master) | [![Build Status](https://dev.azure.com/OpenCodeFoundation/eSchool/_apis/build/status/WebStatus?branchName=master)](https://dev.azure.com/OpenCodeFoundation/eSchool/_build/latest?definitionId=5&branchName=master) |
8-
| [![Actions Status](https://github.com/OpenCodeFoundation/eSchool/workflows/Enrolling.API/badge.svg)](https://github.com/OpenCodeFoundation/eSchool/actions) | [![Actions Status](https://github.com/OpenCodeFoundation/eSchool/workflows/WebStatus/badge.svg)](https://github.com/OpenCodeFoundation/eSchool/actions) |
5+
| Enrolling.API | WebStatus | eSchool.GraphQL |
6+
| :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
7+
| [![Build Status](https://dev.azure.com/OpenCodeFoundation/eSchool/_apis/build/status/Enrolling?branchName=master)](https://dev.azure.com/OpenCodeFoundation/eSchool/_build/latest?definitionId=4&branchName=master) | [![Build Status](https://dev.azure.com/OpenCodeFoundation/eSchool/_apis/build/status/WebStatus?branchName=master)](https://dev.azure.com/OpenCodeFoundation/eSchool/_build/latest?definitionId=5&branchName=master) | [![Build Status](https://dev.azure.com/OpenCodeFoundation/eSchool/_apis/build/status/ESchool.GraphQL?branchName=master)](https://dev.azure.com/OpenCodeFoundation/eSchool/_build/latest?definitionId=7&branchName=master) |
8+
| [![Actions Status](https://github.com/OpenCodeFoundation/eSchool/workflows/Enrolling.API/badge.svg)](https://github.com/OpenCodeFoundation/eSchool/actions) | [![Actions Status](https://github.com/OpenCodeFoundation/eSchool/workflows/WebStatus/badge.svg)](https://github.com/OpenCodeFoundation/eSchool/actions) | [![Actions Status](https://github.com/OpenCodeFoundation/eSchool/workflows/ESchool.GraphQL/badge.svg)](https://github.com/OpenCodeFoundation/eSchool/actions) |
99

1010
## System requirements
1111
### Recommended Hardware requirements for Windows
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
pool:
2+
vmImage: "ubuntu-16.04"
3+
trigger:
4+
paths:
5+
include:
6+
- src/ApiGateways/eSchool.GraphQL/*
7+
- build/azure-devops/eschool-graphql/*
8+
pr:
9+
paths:
10+
include:
11+
- src/ApiGateways/eSchool.GraphQL/*
12+
- build/azure-devops/eschool-graphql/*
13+
steps:
14+
- task: DockerCompose@0
15+
displayName: Build
16+
inputs:
17+
dockerComposeCommand: "build eschool.graphql"
18+
dockerComposeFile: docker-compose.yml

0 commit comments

Comments
 (0)