Skip to content

Commit

Permalink
CI: comment out configuring AWS credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
JonJagger committed Oct 20, 2023
1 parent 0db683d commit 9c7e238
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/main_WIP.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,20 +85,20 @@ jobs:
kosli report artifact cyberdojo/saver:${{ env.image_tag }} \
--artifact-type docker
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1-node16
with:
aws-region: ${{ inputs.AWS_REGION }}
role-duration-seconds: 2400
role-session-name: ${{ github.event.repository.name }}
role-to-assume: arn:aws:iam::${{ inputs.AWS_ACCOUNT_ID }}:role/${{ inputs.gh_actions_iam_role_name }}

- name: Login to Amazon ECR (Elastic Container Registry)
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1

- name: Push image to private ECR
run: |
docker tag cyberdojo/saver:${{ env.image_tag }} 244531986313.dkr.ecr.eu-central-1.amazonaws.com/saver:${{ env.image_tag }}
docker push 244531986313.dkr.ecr.eu-central-1.amazonaws.com/saver:${{ env.image_tag }}
docker logout
# - name: Configure AWS credentials
# uses: aws-actions/configure-aws-credentials@v1-node16
# with:
# aws-region: ${{ inputs.AWS_REGION }}
# role-duration-seconds: 2400
# role-session-name: ${{ github.event.repository.name }}
# role-to-assume: arn:aws:iam::${{ inputs.AWS_ACCOUNT_ID }}:role/${{ inputs.gh_actions_iam_role_name }}
#
# - name: Login to Amazon ECR (Elastic Container Registry)
# id: login-ecr
# uses: aws-actions/amazon-ecr-login@v1
#
# - name: Push image to private ECR
# run: |
# docker tag cyberdojo/saver:${{ env.image_tag }} 244531986313.dkr.ecr.eu-central-1.amazonaws.com/saver:${{ env.image_tag }}
# docker push 244531986313.dkr.ecr.eu-central-1.amazonaws.com/saver:${{ env.image_tag }}
# docker logout

0 comments on commit 9c7e238

Please sign in to comment.