Skip to content

Commit

Permalink
Update boomi-cicd-deployment.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkoMirchevskiCHG authored Nov 28, 2024
1 parent 8d3e374 commit 52e92d1
Showing 1 changed file with 18 additions and 64 deletions.
82 changes: 18 additions & 64 deletions .github/workflows/boomi-cicd-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,22 @@ on:

jobs:

development:
name: Development Deployment
stage:
name: Stage Deployment
runs-on: ubuntu-latest
environment: development
environment: stage

env:
BOOMI_ACCOUNT_ID: ${{ vars.BOOMI_ACCOUNT_ID }}
BOOMI_BASE_URL: ${{ vars.BOOMI_BASE_URL }}
BOOMI_ENVIRONMENT_NAME: "${{ vars.BOOMI_ENVIRONMENT_NAME }}"
BOOMI_USERNAME: ${{ vars.BOOMI_USERNAME }}
BOOMI_PASSWORD: ${{ secrets.BOOMI_PASSWORD }}
BOOMI_RELEASE_FILE: "boomi-cicd-release/boomi_release/release.json"
BOOMI_COMPONENT_GIT_URL: ${{ secrets.BOOMI_COMPONENT_GIT_URL }}
BOOMI_COMPONENT_REPO_NAME: "${{ vars.BOOMI_COMPONENT_REPO_NAME }}"
BOOMI_ENVIRONMENT_NAME: "${{ vars.BOOMI_ENVIRONMENT_NAME }}"
BOOMI_ATOM_NAME: "${{ vars.BOOMI_ATOM_NAME }}"
BOOMI_ENV_RELEASE_FILE: "${{ vars.BOOMI_ENV_RELEASE_FILE }}"

steps:

steps:
- name: 'Cleanup directory'
run: |
ls -la ./
Expand All @@ -46,7 +43,7 @@ jobs:
- name: Checkout Boomi CICD Library
uses: actions/checkout@v4
with:
repository: DarkoMirchevski/boomi-cicd-reference
repository: chghealthcare/boomi-cicd-reference
token: ${{ secrets.BOOMI_CICD_LIBRARY_PAT }}
path: boomi-cicd-reference

Expand All @@ -63,68 +60,17 @@ jobs:
python3.11 boomi_cicd/scripts/automated_testing.py
- name: Update Environment Extensions
run: |
run: |
cd ${GITHUB_WORKSPACE}/boomi-cicd-reference
export PYTHONPATH=$(pwd)
export BOOMI_RELEASE_FILE=${GITHUB_WORKSPACE}/${BOOMI_RELEASE_FILE}
export BOOMI_ENV_RELEASE_FILE=${GITHUB_WORKSPACE}/${BOOMI_ENV_RELEASE_FILE}
python3.11 boomi_cicd/scripts/environment_extensions_update.py
stage:
name: Stage Deployment
runs-on: ubuntu-latest
needs: development

environment: stage

env:
BOOMI_ACCOUNT_ID: ${{ vars.BOOMI_ACCOUNT_ID }}
BOOMI_BASE_URL: ${{ vars.BOOMI_BASE_URL }}
BOOMI_USERNAME: ${{ vars.BOOMI_USERNAME }}
BOOMI_PASSWORD: ${{ secrets.BOOMI_PASSWORD }}
BOOMI_RELEASE_FILE: "boomi-cicd-release/boomi_release/release.json"
BOOMI_ENVIRONMENT_NAME: "${{ vars.BOOMI_ENVIRONMENT_NAME }}"

steps:
- name: 'Cleanup directory'
run: |
ls -la ./
rm -rf ./* || true
rm -rf ./.??* || true
ls -la ./
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Checkout current Boomi release repo
uses: actions/checkout@v4
with:
path: boomi-cicd-release

- name: Checkout Boomi CICD Library
uses: actions/checkout@v4
with:
repository: DarkoMirchevski/boomi-cicd-reference
token: ${{ secrets.BOOMI_CICD_LIBRARY_PAT }}
path: boomi-cicd-reference

- name: Install dependencies
run: |
cd ${GITHUB_WORKSPACE}/boomi-cicd-reference
pip install -r ./requirements.txt
- name: Deployment
run: |
cd ${GITHUB_WORKSPACE}/boomi-cicd-reference
export PYTHONPATH=$(pwd)
export BOOMI_RELEASE_FILE=${GITHUB_WORKSPACE}/${BOOMI_RELEASE_FILE}
python3.11 boomi_cicd/scripts/release_pipeline.py
production:
name: Production Deployment
runs-on: ubuntu-latest
needs: [development, stage]
needs: stage

environment: production

Expand Down Expand Up @@ -157,7 +103,7 @@ jobs:
- name: Checkout Boomi CICD Library
uses: actions/checkout@v4
with:
repository: DarkoMirchevski/boomi-cicd-reference
repository: chghealthcare/boomi-cicd-reference
token: ${{ secrets.BOOMI_CICD_LIBRARY_PAT }}
path: boomi-cicd-reference

Expand All @@ -172,3 +118,11 @@ jobs:
export PYTHONPATH=$(pwd)
export BOOMI_RELEASE_FILE=${GITHUB_WORKSPACE}/${BOOMI_RELEASE_FILE}
python3.11 boomi_cicd/scripts/release_pipeline.py
- name: Update Environment Extensions
run: |
cd ${GITHUB_WORKSPACE}/boomi-cicd-reference
export PYTHONPATH=$(pwd)
export BOOMI_RELEASE_FILE=${GITHUB_WORKSPACE}/${BOOMI_RELEASE_FILE}
export BOOMI_ENV_RELEASE_FILE=${GITHUB_WORKSPACE}/${BOOMI_ENV_RELEASE_FILE}
python3.11 boomi_cicd/scripts/environment_extensions_update.py

0 comments on commit 52e92d1

Please sign in to comment.