Skip to content

Commit

Permalink
pipeline testing
Browse files Browse the repository at this point in the history
  • Loading branch information
priyaranjanpatil committed Dec 14, 2023
1 parent e98901b commit d91a7b5
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -362,13 +362,20 @@ jobs:
env:
IMAGE_TAG: ${{ steps.prep.outputs.BUILD_ID }}
LATEST_ID: ${{ steps.prep.outputs.LATEST_ID }}
HOST: ${{ vars.HOST }}
PORT: ${{ vars.PORT }}
ELASTIC_URL: ${{ vars.ELASTIC_URL }}
ELASTIC_KEY: ${{ vars.ELASTIC_KEY }}
IMAGE: ${{ steps.push-image.outputs.image }}
run: |
IMAGE_ID=${{ env.ECR_REPOSITORY }}:$IMAGE
sed -i 's|${CONTAINER_NAME}|'${{ env.CONTAINER_NAME }}'|g' docker-compose.yml
sed -i 's|${IMAGE_ID}|'$ECR_REPOSITORY:$IMAGE_TAG'|g' docker-compose.yml
sed -i 's|${API_HOST}|'${{ env.HOST }}'|g' docker-compose.yml
sed -i 's|${API_CONTAINER_PORT}|'${{ env.PORT }}'|g' docker-compose.yml
sed -i 's|${ELASTIC_KEY}|'${{ env.ELASTIC_KEY }}'|g' docker-compose.yml
sed -i 's|${ELASTIC_URL}|'${{ env.ELASTIC_URL }}'|g' docker-compose.yml
sed -i 's/${GITHUB_ENV_IMAGE_TAG}/'"${GITHUB_ENV_IMAGE_TAG}"'/g' docker-compose.yml
sed -i 's|${IMAGE_ID}|'&IMAGE_ID'|g' docker-compose.yml
sed -i 's|${API_HOST}|'${{ vars.HOST }}'|g' docker-compose.yml
sed -i 's|${API_CONTAINER_PORT}|'${{ vars.PORT }}'|g' docker-compose.yml
sed -i 's|${ELASTIC_KEY}|'${{ vars.ELASTIC_KEY }}'|g' docker-compose.yml
sed -i 's|${ELASTIC_URL}|'${{ vars.ELASTIC_URL }}'|g' docker-compose.yml
- name: Build Docker images
run: docker-compose -f docker-compose.yml build
Expand Down

0 comments on commit d91a7b5

Please sign in to comment.