Skip to content

Commit

Permalink
Added pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitriy Krayniy committed Oct 24, 2023
1 parent a5a5d61 commit a8ca433
Show file tree
Hide file tree
Showing 134 changed files with 3,037 additions and 2,225 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
name: Pip.Services GCP Gox Delivery
name: Pip.Services Azure GO Delivery

# Configure trigger rules
on:
push:
branches:
- main
paths:
- '**'
- '!README.md'
- 'pip-services4-azure-go/**'
- 'pip-services4-azure-go/!README.md'
workflow_dispatch:

env:
IS_MONOREPO: true

jobs:
# Setup job
setup:
Expand All @@ -23,24 +26,24 @@ jobs:
- name: Pull delivery scripts
shell: bash
run: |
rm -rf script-delivery-ps
rm -rf pip-services4-azure-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 script-delivery-ps
cp -r eic-templates-cicd-ps/script-delivery-ps pip-services4-azure-go/script-delivery-ps
- name: Execute increment script
shell: bash
run: ./script-delivery-ps/setup/increment/increment.ps1
run: pip-services4-azure-go/script-delivery-ps/setup/increment/increment.ps1

- name: Execute prerequisites script
shell: bash
run: ./script-delivery-ps/setup/prereqs/prereqs.ps1
run: pip-services4-azure-go/script-delivery-ps/setup/prereqs/prereqs.ps1

- name: Cache intermediate data
uses: actions/cache@v3
with:
path: |
script-delivery-ps
component*.json
pip-services4-azure-go/script-delivery-ps
pip-services4-azure-go/component*.json
key: delivery-${{ github.run_id }}-${{ github.run_attempt }}

# Authoring job
Expand All @@ -56,34 +59,34 @@ jobs:
uses: actions/cache@v3
with:
path: |
script-delivery-ps
component*.json
pip-services4-azure-go/script-delivery-ps
pip-services4-azure-go/component*.json
key: delivery-${{ github.run_id }}-${{ github.run_attempt }}

- name: Execute build script
shell: bash
run: script-delivery-ps/authoring/build/build.ps1
run: pip-services4-azure-go/script-delivery-ps/authoring/build/build.ps1

- name: Execute test script
shell: bash
run: ./script-delivery-ps/authoring/test/test.ps1
run: pip-services4-azure-go/script-delivery-ps/authoring/test/test.ps1

- name: Execute package script
shell: bash
run: ./script-delivery-ps/authoring/package/package.ps1
run: pip-services4-azure-go/script-delivery-ps/authoring/package/package.ps1

- name: Execute publish script
shell: bash
run: ./script-delivery-ps/authoring/publish/publish.ps1
run: pip-services4-azure-go/script-delivery-ps/authoring/publish/publish.ps1

- name: Execute tag script
shell: bash
run: ./script-delivery-ps/authoring/tag/tag.ps1
run: pip-services4-azure-go/script-delivery-ps/authoring/tag/tag.ps1

- name: Execute clean script
if: always()
shell: bash
run: ./script-delivery-ps/authoring/clean/clean.ps1
run: pip-services4-azure-go/script-delivery-ps/authoring/clean/clean.ps1

# Measure job
measure:
Expand All @@ -96,12 +99,12 @@ jobs:
uses: actions/cache@v3
with:
path: |
script-delivery-ps
component*.json
pip-services4-azure-go/script-delivery-ps
pip-services4-azure-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: ./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 }}
NAME: $(echo '${{ github.repository }}' | awk -F '/' '{print $2}')
run: pip-services4-azure-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
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
name: Pip.Services MongoDB Gox Delivery
name: Pip.Services Commons GO Delivery

# Configure trigger rules
on:
push:
branches:
- main
paths:
- '**'
- '!README.md'
- 'pip-services4-commons-go/**'
- 'pip-services4-commons-go/!README.md'
workflow_dispatch:

env:
IS_MONOREPO: true

jobs:
# Setup job
setup:
Expand All @@ -23,24 +26,24 @@ jobs:
- name: Pull delivery scripts
shell: bash
run: |
rm -rf script-delivery-ps
rm -rf pip-services4-commons-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 script-delivery-ps
cp -r eic-templates-cicd-ps/script-delivery-ps pip-services4-commons-go/script-delivery-ps
- name: Execute increment script
shell: bash
run: ./script-delivery-ps/setup/increment/increment.ps1
run: pip-services4-commons-go/script-delivery-ps/setup/increment/increment.ps1

- name: Execute prerequisites script
shell: bash
run: ./script-delivery-ps/setup/prereqs/prereqs.ps1
run: pip-services4-commons-go/script-delivery-ps/setup/prereqs/prereqs.ps1

- name: Cache intermediate data
uses: actions/cache@v3
with:
path: |
script-delivery-ps
component*.json
pip-services4-commons-go/script-delivery-ps
pip-services4-commons-go/component*.json
key: delivery-${{ github.run_id }}-${{ github.run_attempt }}

# Authoring job
Expand All @@ -56,34 +59,34 @@ jobs:
uses: actions/cache@v3
with:
path: |
script-delivery-ps
component*.json
pip-services4-commons-go/script-delivery-ps
pip-services4-commons-go/component*.json
key: delivery-${{ github.run_id }}-${{ github.run_attempt }}

- name: Execute build script
shell: bash
run: script-delivery-ps/authoring/build/build.ps1
run: pip-services4-commons-go/script-delivery-ps/authoring/build/build.ps1

- name: Execute test script
shell: bash
run: ./script-delivery-ps/authoring/test/test.ps1
run: pip-services4-commons-go/script-delivery-ps/authoring/test/test.ps1

- name: Execute package script
shell: bash
run: ./script-delivery-ps/authoring/package/package.ps1
run: pip-services4-commons-go/script-delivery-ps/authoring/package/package.ps1

- name: Execute publish script
shell: bash
run: ./script-delivery-ps/authoring/publish/publish.ps1
run: pip-services4-commons-go/script-delivery-ps/authoring/publish/publish.ps1

- name: Execute tag script
shell: bash
run: ./script-delivery-ps/authoring/tag/tag.ps1
run: pip-services4-commons-go/script-delivery-ps/authoring/tag/tag.ps1

- name: Execute clean script
if: always()
shell: bash
run: ./script-delivery-ps/authoring/clean/clean.ps1
run: pip-services4-commons-go/script-delivery-ps/authoring/clean/clean.ps1

# Measure job
measure:
Expand All @@ -96,12 +99,12 @@ jobs:
uses: actions/cache@v3
with:
path: |
script-delivery-ps
component*.json
pip-services4-commons-go/script-delivery-ps
pip-services4-commons-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: ./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 }}
NAME: $(echo '${{ github.repository }}' | awk -F '/' '{print $2}')
run: pip-services4-commons-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
110 changes: 110 additions & 0 deletions .github/workflows/pip-services4-components-go.yml
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
Loading

0 comments on commit a8ca433

Please sign in to comment.