-
Notifications
You must be signed in to change notification settings - Fork 4
72 lines (64 loc) · 2.35 KB
/
master.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Draft release from master
on:
push:
branches:
- master
jobs:
release-on-push:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- id: release
uses: rymndhng/release-on-push-action@v0.24.0
with:
bump_version_scheme: patch
- name: Check Output Parameters
run: |
echo "Got tag name ${{ steps.release.outputs.tag_name }}"
echo "Got release version ${{ steps.release.outputs.version }}"
- name: Create gwa-api docker image related to the release
uses: docker/build-push-action@v1
with:
registry: docker.pkg.github.com
username: $GITHUB_ACTOR
password: ${{ secrets.GITHUB_TOKEN }}
repository: bcgov/gwa-api/gwa-gateway-api
path: microservices/gatewayApi
dockerfile: microservices/gatewayApi/Dockerfile
push: true
tags: ${{ steps.release.outputs.tag_name }}
tag_with_sha: false
- name: Create gwa-kube-api docker image related to the release
uses: docker/build-push-action@v1
with:
registry: docker.pkg.github.com
username: $GITHUB_ACTOR
password: ${{ secrets.GITHUB_TOKEN }}
repository: bcgov/gwa-api/gwa-kube-api
path: microservices/kubeApi
dockerfile: microservices/kubeApi/Dockerfile
push: true
tags: ${{ steps.release.outputs.tag_name }}
tag_with_sha: false
- name: Create gwa-scheduler docker image related to the release
uses: docker/build-push-action@v1
with:
registry: docker.pkg.github.com
username: $GITHUB_ACTOR
password: ${{ secrets.GITHUB_TOKEN }}
repository: bcgov/gwa-api/gwa-scheduler
path: microservices/gatewayJobScheduler
dockerfile: microservices/gatewayJobScheduler/Dockerfile
push: true
tags: ${{ steps.release.outputs.tag_name }}
tag_with_sha: false