Skip to content

Commit 0d717b3

Browse files
Merge pull request #79 from PSNAppz/2.0
Refactored Agency, Warehouse allocation and added Notification & Geo Resolver Interfaces
2 parents 27b5c33 + 21c36d2 commit 0d717b3

File tree

230 files changed

+5574
-4243
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

230 files changed

+5574
-4243
lines changed

openg2p-g2p-bridge-api/.copier-answers.yml renamed to .copier-answers.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,5 @@ module_name: openg2p_g2p_bridge_api
1111
org_name: OpenG2P
1212
org_slug: OpenG2P
1313
package_name: openg2p-g2p-bridge-api
14-
repo_name: ' openg2p-g2p-bridge-api
15-
16-
'
14+
repo_name: openg2p-g2p-bridge-api
1715
repo_slug: openg2p-g2p-bridge-api
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Dockers Build and Push
2+
description: ""
3+
inputs:
4+
NAMESPACE:
5+
required: false
6+
description: Docker Hub Namespace or Organization
7+
SERVICE_NAME:
8+
required: true
9+
description: Docker Repository
10+
TAG:
11+
required: false
12+
description: Docker Tag
13+
DOCKERFILE_PATH:
14+
required: true
15+
description: Path to Dockerfile
16+
DOCKER_HUB_TOKEN:
17+
required: false
18+
description: Docker Hub Token
19+
DOCKER_HUB_ACTOR:
20+
required: false
21+
description: Docker Hub Actor
22+
23+
runs:
24+
using: composite
25+
steps:
26+
- name: Docker build
27+
shell: bash
28+
run: |
29+
if [ -z '${{ inputs.TAG }}' ]; then
30+
VERSION=$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')
31+
else
32+
VERSION='${{ inputs.TAG }}'
33+
fi
34+
VERSION=${VERSION#v}
35+
36+
IMAGE_ID=${{ inputs.NAMESPACE || 'openg2p' }}/${{ inputs.SERVICE_NAME }}
37+
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]') # Change all uppercase to lowercase
38+
39+
echo IMAGE_ID=$IMAGE_ID
40+
echo VERSION=$VERSION
41+
echo IMAGE_ID=$IMAGE_ID >> $GITHUB_ENV
42+
echo VERSION=$VERSION >> $GITHUB_ENV
43+
44+
docker build . -f ${{ inputs.DOCKERFILE_PATH }} -t $IMAGE_ID:$VERSION
45+
if [[ '${{ inputs.DOCKER_HUB_TOKEN }}' != '' && '${{ inputs.DOCKER_HUB_ACTOR }}' != '' ]]; then
46+
export DOCKER_PUSH="true"
47+
echo DOCKER_PUSH=$DOCKER_PUSH >> $GITHUB_ENV
48+
fi
49+
- name: Docker push
50+
shell: bash
51+
if: env.DOCKER_PUSH == 'true'
52+
run: |
53+
echo "${{ inputs.DOCKER_HUB_TOKEN }}" | docker login -u ${{ inputs.DOCKER_HUB_ACTOR }} --password-stdin
54+
docker push ${{ env.IMAGE_ID }}:${{ env.VERSION }}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: OpenAPI JSON Generate Action
2+
description: ""
3+
runs:
4+
using: composite
5+
steps:
6+
- name: Install app
7+
shell: bash
8+
run: |
9+
python3 -m pip install git+https://github.com/openg2p/openg2p-fastapi-common@1.1\#subdirectory=openg2p-fastapi-common
10+
python3 -m pip install git+https://github.com/openg2p/openg2p-g2pconnect-common-lib@1.1\#subdirectory=openg2p-g2pconnect-common-lib
11+
python3 -m pip install -e ./openg2p-g2p-bridge-models
12+
python3 -m pip install -e ./openg2p-g2p-bridge-api
13+
- name: Generate openapi json
14+
shell: bash
15+
run: |
16+
mkdir -p api-docs/generated
17+
python3 openg2p-g2p-bridge-api/main.py getOpenAPI api-docs/generated/openapi.json
18+
if ! [ -z "$(git status --porcelain=v1 2>/dev/null -- api-docs/generated/openapi.json)" ]; then
19+
shopt -s nocasematch
20+
if [[ ${{ github.repository_owner }} == 'OpenG2P' ]]; then
21+
export OPENAPI_CHANGED="true"
22+
echo OPENAPI_CHANGED=$OPENAPI_CHANGED >> $GITHUB_ENV
23+
fi
24+
fi

.github/workflows/api-branch.yml

Lines changed: 0 additions & 76 deletions
This file was deleted.

.github/workflows/api-tag.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/api-test.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

.github/workflows/bank-connectors-tag.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/beat-producers-branch.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)