-
-
Notifications
You must be signed in to change notification settings - Fork 67
38 lines (32 loc) · 918 Bytes
/
test-project.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
37
38
name: Build and test project
on:
push:
branches-ignore:
- "main"
pull_request:
jobs:
build-project-directly:
name: "Build project directly"
uses: ./.github/workflows/build-project.yml
with:
uploadArtifacts: true
includeReports: true
build-docker:
needs: build-project-directly
name: Build Docker images for Docker Hub
uses: ./.github/workflows/build-docker.yml
with:
appEnvironment: "github"
pushImages: false
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
build-project-in-docker:
name: Build Docker images for local
uses: ./.github/workflows/build-docker.yml
with:
appEnvironment: "local"
pushImages: false
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}