Skip to content

Commit

Permalink
- Renamed jasper-web to web
Browse files Browse the repository at this point in the history
- Declare env above runs section
  • Loading branch information
Ronaldo Macapobre committed Aug 22, 2024
1 parent 93a6f48 commit 4b94891
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/actions/deploy-to-aws/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ inputs:
description: The digest of the image to be deployed. Identifies the unique image tag in the GHCR.
required: true

env:
AWS_ECR_REPO_URL: ${{ inputs.aws_account }}.dkr.ecr.${{ inputs.region }}.amazonaws.com/${{ inputs.app_name }}-ecr-repo-${{ inputs.environment }}

runs:
using: composite
env:
aws_ecr_repo_url: ${{ inputs.aws_account }}.dkr.ecr.${{ inputs.region }}.amazonaws.com/${{ inputs.app_name }}-ecr-repo-${{ inputs.environment }}
steps:
- name: Log in to the GHCR
uses: docker/login-action@v2
Expand All @@ -55,11 +56,11 @@ runs:

- name: Login to AWS CLI
run: |
aws ecr get-login-password --region ${{ inputs.region }} | docker login --username AWS --password-stdin ${{ env.aws_ecr_repo_url }}
aws ecr get-login-password --region ${{ inputs.region }} | docker login --username AWS --password-stdin ${{ env.AWS_ECR_REPO_URL }}
- name: Tag the image in the GHCR as ${{ inputs.environment }}
shell: bash
run: |
docker pull ${{ github_image_repo}}${{ inputs.image_name }}@${{ inputs.image_digest }}
docker tag ${{ github_image_repo}}${{ inputs.image_name }}@${{ inputs.image_digest }} ${{ env.aws_ecr_repo_url }}:${{ inputs.image_name }}
docker push ${{ env.aws_ecr_repo_url }}:${{ inputs.image_name }}
docker tag ${{ github_image_repo}}${{ inputs.image_name }}@${{ inputs.image_digest }} ${{ env.AWS_ECR_REPO_URL }}:${{ inputs.image_name }}
docker push ${{ env.AWS_ECR_REPO_URL }}:${{ inputs.image_name }}
2 changes: 1 addition & 1 deletion .github/workflows/app-vue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

env:
WORKING_DIRECTORY: ./web
IMAGE_NAME: jasper-web
IMAGE_NAME: web
GITHUB_IMAGE_REPO: ghcr.io/bcgov/jasper/

jobs:
Expand Down

0 comments on commit 4b94891

Please sign in to comment.