Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
artursudnik committed Oct 9, 2023
1 parent 77b2d38 commit f227505
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/deploy-vc-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ jobs:
id: env_vars
run: |
echo "Running on branch ${{ github.ref }}"
echo "aws_region=${{ secrets.AWS_REGION }} >> $GITHUB_OUTPUT"
echo "aws_access_key_id_ssi=${{ secrets.DEV_AWS_ACCESS_KEY_ID }} >> $GITHUB_OUTPUT"
echo "aws_secret_key_ssi=${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }} >> $GITHUB_OUTPUT"
echo "aws_ecr_repository_ssi=${{ secrets.DEV_ECR_REPOSITORY }} >> $GITHUB_OUTPUT"
echo "aws_access_key_id_idc=${{ secrets.DEV_AWS_ACCESS_KEY_ID_IDC }} >> $GITHUB_OUTPUT"
echo "aws_secret_key_idc=${{ secrets.DEV_AWS_SECRET_ACCESS_KEY_IDC }} >> $GITHUB_OUTPUT"
echo "aws_ecr_repository_idc=${{ secrets.DEV_ECR_REPOSITORY_IDC }} >> $GITHUB_OUTPUT"
echo "argocd_url=${{ secrets.DEV_ARGOCD_URL }} >> $GITHUB_OUTPUT"
echo "argocd_username=${{ secrets.DEV_ARGOCD_USERNAME }} >> $GITHUB_OUTPUT"
echo "argocd_password=${{ secrets.DEV_ARGOCD_PASS }} >> $GITHUB_OUTPUT"
echo "::set-output name=aws_region::${{ secrets.AWS_REGION }}"
echo "::set-output name=aws_access_key_id_ssi::${{ secrets.DEV_AWS_ACCESS_KEY_ID }}"
echo "::set-output name=aws_secret_key_ssi::${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }}"
echo "::set-output name=aws_ecr_repository_ssi::${{ secrets.DEV_ECR_REPOSITORY }}"
echo "::set-output name=aws_access_key_id_idc::${{ secrets.DEV_AWS_ACCESS_KEY_ID_IDC }}"
echo "::set-output name=aws_secret_key_idc::${{ secrets.DEV_AWS_SECRET_ACCESS_KEY_IDC }}"
echo "::set-output name=aws_ecr_repository_idc::${{ secrets.DEV_ECR_REPOSITORY_IDC }}"
echo "::set-output name=argocd_url::${{ secrets.DEV_ARGOCD_URL }}"
echo "::set-output name=argocd_username::${{ secrets.DEV_ARGOCD_USERNAME }}"
echo "::set-output name=argocd_password::${{ secrets.DEV_ARGOCD_PASS }}"
- name: Check out vc-api-owf
run: |
Expand All @@ -57,11 +57,9 @@ jobs:

- name: Build Docker image
working-directory: ./vc-api-owf
env:
AWS_ECR_REPOSITORY_SSI: ${{ secrets.DEV_ECR_REPOSITORY }}
run: |
docker build \
-t $ECR_REGISTRY/$AWS_ECR_REPOSITORY_SSI:$BUILD_ID \
-t $ECR_REGISTRY/${{ steps.env_vars.outputs.aws_ecr_repository_ssi }}:$BUILD_ID \
-f apps/vc-api/Dockerfile .
- name: Push Docker image
Expand Down

0 comments on commit f227505

Please sign in to comment.