diff --git a/test-workflow.yml b/test-workflow.yml index 0130cfed..09166a75 100644 --- a/test-workflow.yml +++ b/test-workflow.yml @@ -6,8 +6,8 @@ on: name: Integration Test jobs: - deploy: - name: Deploy + job1: + name: Test runs-on: ubuntu-latest steps: @@ -19,7 +19,7 @@ jobs: echo Integration test run: BUILD_ID - name: Configure AWS credentials - id: configure-aws-credentials-pdx + id: configure-aws-credentials-us-west-2 uses: aws-actions/configure-aws-credentials@v1 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} @@ -46,7 +46,7 @@ jobs: registries: ${{ steps.configure-aws-credentials.outputs.aws-account-id }} - name: Configure AWS credentials - id: configure-aws-credentials-iad + id: configure-aws-credentials-us-east-1 uses: aws-actions/configure-aws-credentials@v1 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} @@ -69,4 +69,22 @@ jobs: docker pull amazonlinux docker tag amazonlinux $ECR_PUBLIC_REGISTRY/$ECR_PUBLIC_REGISTRY_ALIAS/$ECR_PUBLIC_REPOSITORY:$IMAGE_TAG docker push $ECR_PUBLIC_REGISTRY/$ECR_PUBLIC_REGISTRY_ALIAS/$ECR_PUBLIC_REPOSITORY:$IMAGE_TAG - + outputs: + docker_username: ${{ steps.login-ecr.outputs.docker_username_386586417298_dkr_ecr_us_west_2_amazonaws_com }} + docker_password: ${{ steps.login-ecr.outputs.docker_password_386586417298_dkr_ecr_us_west_2_amazonaws_com }} + + job2: + name: Service + needs: job1 + runs-on: ubuntu-latest + services: + internal-service: + image: 386586417298.dkr.ecr.us-west-2.amazonaws.com/github-actions-amazon-ecr-login-integ-tests:latest + credentials: + username: ${{ needs.job1.outputs.docker_username }} + password: ${{ needs.job1.outputs.docker_password }} + ports: + - '80:80' + steps: + - name: Echo + run: echo "Integration Test"