-
Notifications
You must be signed in to change notification settings - Fork 849
44 lines (40 loc) · 1.11 KB
/
pr-ci.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
# v3.800.7
# https://virtocommerce.atlassian.net/browse/VCST-1109
name: Platform PR build
on:
workflow_dispatch:
pull_request:
branches: [ master, dev ]
paths-ignore:
- '.github/**'
- 'docs/**'
- 'build/**'
- 'README.md'
- 'LICENSE'
- '**/argoDeploy.json'
- '**/cloudDeploy.json'
jobs:
test:
uses: VirtoCommerce/.github/.github/workflows/[email protected]
secrets:
sonarToken: ${{ secrets.SONAR_TOKEN }}
build:
uses: VirtoCommerce/.github/.github/workflows/[email protected]
with:
uploadDocker: 'true'
secrets:
envPAT: ${{ secrets.REPO_TOKEN }}
publish-tag:
needs: build
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}
steps:
- name: publish-tag
if: ${{ github.event_name == 'pull_request' }}
uses: VirtoCommerce/vc-github-actions/publish-artifact-link@master
with:
artifactUrl: ${{ needs.build.outputs.imageTag}}
repoOrg: ${{ github.repository_owner }}
downloadComment: 'Image tag:'
githubToken: ${{ env.GITHUB_TOKEN }}