Skip to content

Commit

Permalink
add workflow cmd to insert values in eb script
Browse files Browse the repository at this point in the history
  • Loading branch information
KenLSM committed Mar 4, 2024
1 parent 0116386 commit 1aeec66
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy-eb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ jobs:
APP_VERSION=${{env.APP_VERSION}}
APP_URL=${{secrets.APP_URL}}
REPO_URL=${{github.server_url}}/${{github.repository}}
DD_GIT_REPOSITORY_URL=${{github.server_url}}/${{github.repository}}
DD_GIT_COMMIT_SHA=${{github.sha}}
secrets: |
"dd_api_key=${{ secrets.DD_API_KEY }}"
Expand All @@ -95,11 +93,14 @@ jobs:
ECR_REPOSITORY: ${{ secrets.ECR_REPO }}
DD_API_KEY: ${{ secrets.DD_API_KEY }}
DD_ENV: ${{ secrets.DD_ENV }}
DD_GIT_REPOSITORY_URL: ${{github.server_url}}/${{github.repository}}
DD_GIT_COMMIT_SHA: ${{github.sha}}
run: |
docker tag $ECR_REPOSITORY:$IMAGE_TAG $ECR_REPOSITORY:$BRANCH
docker push -a $ECR_REPOSITORY
sed -i -e "s/@TAG/$IMAGE_TAG/g" Dockerrun.aws.json
sed -i -e "s/@DD_API_KEY/$DD_API_KEY/g" -e "s/@DD_ENV/$DD_ENV/g" .ebextensions/99datadog-amazon-linux-2.config
sed -i -e "s/@DD_GIT_REPOSITORY_URL/$DD_GIT_REPOSITORY_URL/g" -e "s/@DD_GIT_COMMIT_SHA/$DD_GIT_COMMIT_SHA/g" .ebextensions/02env-file-datadog.config
zip -r "$IMAGE_TAG.zip" .ebextensions Dockerrun.aws.json
- name: Copy Image to S3
Expand Down

0 comments on commit 1aeec66

Please sign in to comment.