COMMIT_HASH=$(echo $GITHUB_SHA | cut -c 1-7) ECR_DOMAIN="${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.ap- northeast-1.amazonaws.com" ECR_REPOSITORY="$ECR_DOMAIN/${{ env.ecr_repo_name }}" IMAGE_TAG="$ECR_REPOSITORY:$COMMIT_HASH" echo "IMAGE_TAG=$IMAGE_TAG" >> $GITHUB_ENV echo "COMMIT_HASH=$COMMIT_HASH" >> $GITHUB_ENV - name: Install pack run: | wget -q https://github.com/buildpacks/pack/releases/download/v$ {{ env.pack_version }}/pack-v${{ env.pack_version }}-linux.tgz -O - | tar -xz chmod +x ./pack - name: Build and push Docker image run: | ./pack build $IMAGE_TAG --no-color --builder ${{ env.builder }} \ --path src/my-app --tag $IMAGE_TAG --publish #VJMEQBDLTΛͬͯ*NBHF#VJMEͱ&$3ͷQVTI