-
Notifications
You must be signed in to change notification settings - Fork 18
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
0 parents
commit f640f35
Showing
393 changed files
with
19,504 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 4 | ||
indent_style = space | ||
insert_final_newline = false | ||
max_line_length = 120 | ||
tab_width = 4 | ||
trim_trailing_whitespace = false | ||
|
||
[*.avdl] | ||
indent_style = tab | ||
|
||
[{*.ant,*.fxml,*.jhm,*.jnlp,*.jrxml,*.pom,*.rng,*.tld,*.wadl,*.wsdd,*.wsdl,*.xjb,*.xml,*.xsd,*.xsl,*.xslt,*.xul}] | ||
max_line_length = 160 | ||
|
||
[{*.har,*.jsb2,*.jsb3,*.json,.babelrc,.eslintrc,.prettierrc,.stylelintrc,bowerrc,jest.config}] | ||
indent_size = 2 | ||
|
||
[{*.yaml,*.yml}] | ||
indent_size = 2 | ||
tab_width = 2 |
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,40 @@ | ||
name: Deploy to ASA Enterprise | ||
on: | ||
push: | ||
branches: [ "main" ] | ||
env: | ||
# Use matrix to loop through all the packages | ||
ASC_PACKAGE_PATH: ${{ github.workspace }} | ||
SERVICE_INSTANCE_NAME: asae-sandbox | ||
APP_NAME: order-service | ||
|
||
jobs: | ||
deploy_to_asa-e: | ||
runs-on: ubuntu-latest | ||
name: deploy with source code to Azure Spring Apps Enterprise | ||
steps: | ||
- name: Checkout Github Action | ||
uses: actions/checkout@v2 | ||
|
||
# old method | ||
- name: Login via Azure CLI | ||
uses: azure/login@v1 | ||
with: | ||
creds: ${{ secrets.AZURE_CREDENTIALS }} | ||
|
||
# TODO: debug managed identity | ||
# - name: Az Cli Login | ||
# uses: azure/login@v1 | ||
# with: | ||
# client-id: ${{ secrets.AZ_CLIENT_ID }} | ||
# tenant-id: ${{ secrets.AZ_TENANT_ID }} | ||
# subscription-id: ${{ secrets.AZ_SUB_ID }} | ||
- name: deploy with soruce code | ||
uses: azure/spring-cloud-deploy@v1 | ||
with: | ||
azure-subscription: ${{ secrets.AZ_SUB_ID }} | ||
action: deploy | ||
service-name: ${{ env.SERVICE_INSTANCE_NAME }} | ||
app-name: ${{ env.APP_NAME }} | ||
use-staging-deployment: false | ||
package: ${{ env.ASC_PACKAGE_PATH }}/${{ env.APP_NAME }} |
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,70 @@ | ||
name: package-accounting-service | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
paths: | ||
- 'accounting-service/**' | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
set-env: | ||
name: Set Environment Variables | ||
runs-on: ubuntu-latest | ||
outputs: | ||
version: ${{ steps.main.outputs.version }} | ||
created: ${{ steps.main.outputs.created }} | ||
project: ${{ steps.main.outputs.project }} | ||
image: ${{ steps.main.outputs.image }} | ||
repository: ${{ steps.main.outputs.repository }} | ||
steps: | ||
- id: main | ||
run: | | ||
echo ::set-output name=version::$(echo ${GITHUB_SHA} | cut -c1-7) | ||
echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ') | ||
echo ::set-output name=project::accounting-service | ||
echo ::set-output name=image::reddog-java-accounting-service | ||
echo ::set-output name=repository::ghcr.io/azure/reddog-demo | ||
package-service: | ||
name: Package Service | ||
runs-on: ubuntu-latest | ||
needs: set-env | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
cache: 'maven' | ||
- name: Set up Maven | ||
uses: stCarolas/[email protected] | ||
with: | ||
maven-version: 3.8.2 | ||
- name: Build with Maven | ||
run: mvn -B package --file ./accounting-service/pom.xml -DskipTests | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.CR_PAT }} | ||
- name: Build and push | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: accounting-service | ||
file: accounting-service/Dockerfile | ||
push: true | ||
tags: | | ||
${{ needs.set-env.outputs.repository }}/${{ needs.set-env.outputs.image }}:latest | ||
${{ needs.set-env.outputs.repository }}/${{ needs.set-env.outputs.image }}:${{ needs.set-env.outputs.version }} | ||
labels: | | ||
org.opencontainers.image.source=${{ github.repositoryUrl }} | ||
org.opencontainers.image.created=${{ needs.set-env.outputs.created }} | ||
org.opencontainers.image.revision=${{ needs.set-env.outputs.version }} |
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,57 @@ | ||
name: package-az-openai-python-service | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
set-env: | ||
name: Set Environment Variables | ||
runs-on: ubuntu-latest | ||
outputs: | ||
version: ${{ steps.main.outputs.version }} | ||
created: ${{ steps.main.outputs.created }} | ||
project: ${{ steps.main.outputs.project }} | ||
image: ${{ steps.main.outputs.image }} | ||
repository: ${{ steps.main.outputs.repository }} | ||
steps: | ||
- id: main | ||
run: | | ||
echo ::set-output name=version::$(echo ${GITHUB_SHA} | cut -c1-7) | ||
echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ') | ||
echo ::set-output name=project::reddog-az-openai-python-service | ||
echo ::set-output name=image::reddog-az-openai | ||
echo ::set-output name=repository::ghcr.io/azure/reddog-demo | ||
package-service: | ||
name: Package Service | ||
runs-on: ubuntu-latest | ||
needs: set-env | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.CR_PAT }} | ||
- name: Build Docker container and push | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: generative-ai/az-openai | ||
file: generative-ai/az-openai/Dockerfile | ||
push: true | ||
tags: | | ||
${{ needs.set-env.outputs.repository }}/${{ needs.set-env.outputs.image }}:latest | ||
${{ needs.set-env.outputs.repository }}/${{ needs.set-env.outputs.image }}:${{ needs.set-env.outputs.version }} | ||
labels: | | ||
org.opencontainers.image.source=${{ github.repositoryUrl }} | ||
org.opencontainers.image.created=${{ needs.set-env.outputs.created }} | ||
org.opencontainers.image.revision=${{ needs.set-env.outputs.version }} |
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,70 @@ | ||
name: package-loyalty-service | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
paths: | ||
- 'loyalty-service/**' | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
set-env: | ||
name: Set Environment Variables | ||
runs-on: ubuntu-latest | ||
outputs: | ||
version: ${{ steps.main.outputs.version }} | ||
created: ${{ steps.main.outputs.created }} | ||
project: ${{ steps.main.outputs.project }} | ||
image: ${{ steps.main.outputs.image }} | ||
repository: ${{ steps.main.outputs.repository }} | ||
steps: | ||
- id: main | ||
run: | | ||
echo ::set-output name=version::$(echo ${GITHUB_SHA} | cut -c1-7) | ||
echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ') | ||
echo ::set-output name=project::loyalty-service | ||
echo ::set-output name=image::reddog-java-loyalty-service | ||
echo ::set-output name=repository::ghcr.io/azure/reddog-demo | ||
package-service: | ||
name: Package Service | ||
runs-on: ubuntu-latest | ||
needs: set-env | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
cache: 'maven' | ||
- name: Set up Maven | ||
uses: stCarolas/[email protected] | ||
with: | ||
maven-version: 3.8.2 | ||
- name: Build with Maven | ||
run: mvn -B package --file ./loyalty-service/pom.xml -DskipTests | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.CR_PAT }} | ||
- name: Build and push | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: loyalty-service | ||
file: loyalty-service/Dockerfile | ||
push: true | ||
tags: | | ||
${{ needs.set-env.outputs.repository }}/${{ needs.set-env.outputs.image }}:latest | ||
${{ needs.set-env.outputs.repository }}/${{ needs.set-env.outputs.image }}:${{ needs.set-env.outputs.version }} | ||
labels: | | ||
org.opencontainers.image.source=${{ github.repositoryUrl }} | ||
org.opencontainers.image.created=${{ needs.set-env.outputs.created }} | ||
org.opencontainers.image.revision=${{ needs.set-env.outputs.version }} |
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,70 @@ | ||
name: package-makeline-service | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
paths: | ||
- 'makeline-service/**' | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
set-env: | ||
name: Set Environment Variables | ||
runs-on: ubuntu-latest | ||
outputs: | ||
version: ${{ steps.main.outputs.version }} | ||
created: ${{ steps.main.outputs.created }} | ||
project: ${{ steps.main.outputs.project }} | ||
image: ${{ steps.main.outputs.image }} | ||
repository: ${{ steps.main.outputs.repository }} | ||
steps: | ||
- id: main | ||
run: | | ||
echo ::set-output name=version::$(echo ${GITHUB_SHA} | cut -c1-7) | ||
echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ') | ||
echo ::set-output name=project::makeline-service | ||
echo ::set-output name=image::reddog-java-makeline-service | ||
echo ::set-output name=repository::ghcr.io/azure/reddog-demo | ||
package-service: | ||
name: Package Service | ||
runs-on: ubuntu-latest | ||
needs: set-env | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
cache: 'maven' | ||
- name: Set up Maven | ||
uses: stCarolas/[email protected] | ||
with: | ||
maven-version: 3.8.2 | ||
- name: Build with Maven | ||
run: mvn -B package --file ./makeline-service/pom.xml -DskipTests | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.CR_PAT }} | ||
- name: Build and push | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: makeline-service | ||
file: makeline-service/Dockerfile | ||
push: true | ||
tags: | | ||
${{ needs.set-env.outputs.repository }}/${{ needs.set-env.outputs.image }}:latest | ||
${{ needs.set-env.outputs.repository }}/${{ needs.set-env.outputs.image }}:${{ needs.set-env.outputs.version }} | ||
labels: | | ||
org.opencontainers.image.source=${{ github.repositoryUrl }} | ||
org.opencontainers.image.created=${{ needs.set-env.outputs.created }} | ||
org.opencontainers.image.revision=${{ needs.set-env.outputs.version }} |
Oops, something went wrong.