Modular logistics and supply chain operating system (LSOS)
JavaScript driver-appfleet-managementfreight-managementinfrastructureinventory-managementlast-mile-deliverylogisticsondemandopen-sourceorder-managementroute-optimizationsupply-chain-managementtracking-and-monitoringtransport-management-systemtransportationwarehouse-management
updated github workflows for deploy added `Set Dynamic ENV Vars` step for console deploy
Ronald A. Richardsona0e9a912f642
diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.ymlindex d97a7afb..c29f4ec9 100644--- a/.github/workflows/cd.yml+++ b/.github/workflows/cd.yml@@ -18,7 +18,6 @@ jobs:id-token: write # This is required for requesting the JWTcontents: read # This is required for actions/checkout-steps:- name: Checkout Codeuses: actions/checkout@v3@@ -28,13 +27,13 @@ jobs:- name: Set up Docker Buildxuses: docker/setup-buildx-action@v2- - name: Set dynamic env vars+ - name: Set Dynamic ENV Varsrun: |SHORT_COMMIT=$(echo $GITHUB_SHA | cut -c -8)echo "VERSION=${SHORT_COMMIT}" >> $GITHUB_ENVecho "STACK=$(basename $GITHUB_REF)" >> $GITHUB_ENV- - name: configure aws credentials+ - name: Configure AWS Credentialsuses: aws-actions/configure-aws-credentials@v2with:role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_NUMBER }}:role/${{ env.PROJECT }}-${{ env.STACK }}-deployer@@ -45,7 +44,7 @@ jobs:id: login-ecruses: aws-actions/amazon-ecr-login@v1- - name: Build and release+ - name: Build and Releaseuses: docker/bake-action@v2env:REGISTRY: ${{ steps.login-ecr.outputs.registry }}/${{ env.PROJECT }}-${{ env.STACK }}@@ -54,10 +53,12 @@ jobs:push: truefiles: |./docker-bake.hcl+- name: Download ecs-toolrun: |wget -O ecs-tool.tar.gz https://github.com/springload/ecs-tool/releases/download/1.9.6/ecs-tool_1.9.6_linux_amd64.tar.gz && tar -xvf ecs-tool.tar.gz ecs-tool- - name: Deploy the images++ - name: Deploy the images πrun: |-set -eu# run deploy.sh script before deployments@@ -78,6 +79,12 @@ jobs:with:submodules: true+ - name: Set Dynamic ENV Vars+ run: |+ SHORT_COMMIT=$(echo $GITHUB_SHA | cut -c -8)+ echo "VERSION=${SHORT_COMMIT}" >> $GITHUB_ENV+ echo "STACK=$(basename $GITHUB_REF)" >> $GITHUB_ENV+- name: Install Node.jsuses: actions/setup-node@v3with:@@ -90,14 +97,14 @@ jobs:version: 8run_install: false- - name: Get pnpm store directory+ - name: Get pnpm Store Directoryid: pnpm-cacheshell: bashrun: |echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT- uses: actions/cache@v3- name: Setup pnpm cache+ name: Setup pnpm Cachewith:path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}@@ -107,7 +114,8 @@ jobs:- name: Install dependenciesrun: pnpm installworking-directory: ./console- - name: build++ - name: Buildrun: |set -eu@@ -117,13 +125,14 @@ jobs:pnpm buildworking-directory: ./console- - name: configure aws credentials+ - name: Configure AWS Credentialsuses: aws-actions/configure-aws-credentials@v2with:role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_NUMBER }}:role/${{ env.PROJECT }}-${{ env.STACK }}-deployerrole-session-name: githubaws-region: ${{ secrets.AWS_REGION }}- - name: Deploy console++ - name: Deploy Console πrun: |DEPLOY_BUCKET=${{ env.PROJECT }}}-${{ env.STACK }}diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 8ce4ce76..dfbc89ad 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -22,7 +22,7 @@ jobs:- name: Set up Docker Buildxuses: docker/setup-buildx-action@v2- - name: Build and release+ - name: Build and Releaseuses: docker/bake-action@v2with:files: |