-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dmitriy Krayniy
committed
Oct 24, 2023
1 parent
a5a5d61
commit a8ca433
Showing
134 changed files
with
3,037 additions
and
2,225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
name: Pip.Services Components GO Delivery | ||
|
||
# Configure trigger rules | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'pip-services4-components-go/**' | ||
- 'pip-services4-components-go/!README.md' | ||
workflow_dispatch: | ||
|
||
env: | ||
IS_MONOREPO: true | ||
|
||
jobs: | ||
# Setup job | ||
setup: | ||
runs-on: ubuntu-22.04 | ||
if: "!contains(github.event.head_commit.message, '[skip-ci]')" | ||
|
||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@main | ||
|
||
- name: Pull delivery scripts | ||
shell: bash | ||
run: | | ||
rm -rf pip-services4-components-go/script-delivery-ps | ||
git clone ${{ secrets.SCRIPTS_DELIVERY_PS_GIT_URL }} eic-templates-cicd-ps | ||
cp -r eic-templates-cicd-ps/script-delivery-ps pip-services4-components-go/script-delivery-ps | ||
- name: Execute increment script | ||
shell: bash | ||
run: pip-services4-components-go/script-delivery-ps/setup/increment/increment.ps1 | ||
|
||
- name: Execute prerequisites script | ||
shell: bash | ||
run: pip-services4-components-go/script-delivery-ps/setup/prereqs/prereqs.ps1 | ||
|
||
- name: Cache intermediate data | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
pip-services4-components-go/script-delivery-ps | ||
pip-services4-components-go/component*.json | ||
key: delivery-${{ github.run_id }}-${{ github.run_attempt }} | ||
|
||
# Authoring job | ||
authoring: | ||
needs: setup | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@main | ||
|
||
- name: Get cached intermediate data | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
pip-services4-components-go/script-delivery-ps | ||
pip-services4-components-go/component*.json | ||
key: delivery-${{ github.run_id }}-${{ github.run_attempt }} | ||
|
||
- name: Execute build script | ||
shell: bash | ||
run: pip-services4-components-go/script-delivery-ps/authoring/build/build.ps1 | ||
|
||
- name: Execute test script | ||
shell: bash | ||
run: pip-services4-components-go/script-delivery-ps/authoring/test/test.ps1 | ||
|
||
- name: Execute package script | ||
shell: bash | ||
run: pip-services4-components-go/script-delivery-ps/authoring/package/package.ps1 | ||
|
||
- name: Execute publish script | ||
shell: bash | ||
run: pip-services4-components-go/script-delivery-ps/authoring/publish/publish.ps1 | ||
|
||
- name: Execute tag script | ||
shell: bash | ||
run: pip-services4-components-go/script-delivery-ps/authoring/tag/tag.ps1 | ||
|
||
- name: Execute clean script | ||
if: always() | ||
shell: bash | ||
run: pip-services4-components-go/script-delivery-ps/authoring/clean/clean.ps1 | ||
|
||
# Measure job | ||
measure: | ||
needs: authoring | ||
if: always() | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Get cached intermediate data | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
pip-services4-components-go/script-delivery-ps | ||
pip-services4-components-go/component*.json | ||
key: delivery-${{ github.run_id }}-${{ github.run_attempt }} | ||
|
||
- name: Execute measure script | ||
env: | ||
NAME: $(echo '${{ github.repository }}' | awk -F '/' '{print $2}') | ||
run: pip-services4-components-go/script-delivery-ps/measure/measure.ps1 ${{ github.repository_owner }} ${{ env.NAME }} ${{ secrets.AWS_ACCESS_KEY_ID }} ${{ secrets.AWS_SECRET_ACCESS_KEY }} ${{ secrets.AWS_S3_BUCKET }} ${{ secrets.AWS_S3_BUCKET_FOLDER }} ${{ secrets.GITHUB_TOKEN }} | ||
shell: bash |
Oops, something went wrong.