Skip to content

Commit

Permalink
Merge pull request #26 from OilerNetwork/ui-cicd
Browse files Browse the repository at this point in the history
Added env to deploy_pitchlake_ui.yaml file
  • Loading branch information
Osinachi-Uro authored Nov 22, 2024
2 parents db5f7d9 + a0ebe82 commit 6d293b9
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/deploy_pitchlake_ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ permissions:
jobs:
build_push_deploy:
runs-on: ubuntu-latest
environment: staging

steps:
- name: Checkout repository
Expand Down Expand Up @@ -67,7 +68,21 @@ jobs:
IMAGE_TAG=pitchlake-ui-${{ github.sha }}
IMAGE_URI=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
echo "IMAGE_URI=$IMAGE_URI" >> $GITHUB_ENV
docker buildx build --platform=linux/amd64 -f ./Dockerfile -t $IMAGE_URI ./
docker buildx build \
--platform=linux/amd64 \
--build-arg PORT=${{ env.PORT }} \
--build-arg NEXT_PUBLIC_VAULT_ADDRESSES=${{ env.NEXT_PUBLIC_VAULT_ADDRESSES }} \
--build-arg NEXT_PUBLIC_API_URL=${{ env.NEXT_PUBLIC_API_URL }} \
--build-arg NEXT_PUBLIC_ENVIRONMENT=${{ env.NEXT_PUBLIC_ENVIRONMENT }} \
--build-arg NEXT_PUBLIC_RPC_URL_MAINNET=${{ env.NEXT_PUBLIC_RPC_URL_MAINNET }} \
--build-arg NEXT_PUBLIC_RPC_URL_SEPOLIA=${{ env.NEXT_PUBLIC_RPC_URL_SEPOLIA }} \
--build-arg NEXT_PUBLIC_RPC_URL_DEVNET=${{ env.NEXT_PUBLIC_RPC_URL_DEVNET }} \
--build-arg NEXT_PUBLIC_RPC_URL_JUNO_DEVNET=${{ env.NEXT_PUBLIC_RPC_URL_JUNO_DEVNET }} \
--build-arg NEXT_PUBLIC_WS_URL=${{ env.NEXT_PUBLIC_WS_URL }} \
--build-arg FOSSIL_API_KEY=${{ env.FOSSIL_API_KEY }} \
--build-arg NEXT_PUBLIC_FOSSIL_API_URL=${{ env.NEXT_PUBLIC_FOSSIL_API_URL }} \
-f ./Dockerfile
-t $IMAGE_URI ./
docker push $IMAGE_URI
- name: Download task definition
Expand Down

0 comments on commit 6d293b9

Please sign in to comment.