Bitbucket-Pipelines/two-stage-pipeline-template/{{cookiecutter.outputDir}}/bitbucket-pipelines.yml [19:34]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            {% else %}
            # If there are functions with "Image" PackageType in your template,
            # uncomment the line below and add "--image-repository ${TESTING_IMAGE_REPOSITORY}" to
            # testing "sam package" and "sam deploy" commands.'
            #- export TESTING_IMAGE_REPOSITORY='0123456789.dkr.ecr.region.amazonaws.com/repository-name'
            {% endif -%}
            - sam build --template $SAM_TEMPLATE --use-container
            - source assume-role.sh $TESTING_PIPELINE_EXECUTION_ROLE testing-stage-packaging testing-stage
            - >
              sam package --profile testing-stage
              --s3-bucket $TESTING_ARTIFACTS_BUCKET
              --region $TESTING_REGION
              {%- if cookiecutter.testing_image_repository %}
              --image-repository ${TESTING_IMAGE_REPOSITORY}
              {%- endif %}
              --output-template-file packaged-testing.yaml
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



Bitbucket-Pipelines/two-stage-pipeline-template/{{cookiecutter.outputDir}}/bitbucket-pipelines.yml [75:90]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            {% else %}
            # If there are functions with "Image" PackageType in your template,
            # uncomment the line below and add "--image-repository ${PRODUCTION_IMAGE_REPOSITORY}" to
            # testing "sam package" and "sam deploy" commands.'
            #- export PRODUCTION_IMAGE_REPOSITORY='0123456789.dkr.ecr.region.amazonaws.com/repository-name'
            {% endif -%}
            - sam build --template $SAM_TEMPLATE --use-container
            - source assume-role.sh $TESTING_PIPELINE_EXECUTION_ROLE testing-stage-packaging testing-stage
            - >
              sam package --profile testing-stage
              --s3-bucket $TESTING_ARTIFACTS_BUCKET
              --region $TESTING_REGION
              {%- if cookiecutter.testing_image_repository %}
              --image-repository ${TESTING_IMAGE_REPOSITORY}
              {%- endif %}
              --output-template-file packaged-testing.yaml
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



