For Group 2, we created a new branch hackpod-group2 in repo
Travis added a commit to add a step in CI.yml file for adding AWS credentials.
Key points:
changed vars to secret for ROLE-TO-ASSUME with a dollar sign and added vars for AWS_REGION
ran the action and had an error: credentials could not be loaded
tried running workflow in main branch which was succesful.
fixed the error using main.yml by copying permissions, id-token and contents.
Abir shared knowledge on various steps in CI.yml file for docker containerization of Amplify app which involves creating a VM instance.
Step to clone amplify repo
Step to login to ECR registry
Built a docker image of our repo and passed it to AWS ECR using this step
More specifically, docker build creates an image and docker push sends it to AWS ECR
Joey raised a question regarding $GitHub_workspace
$GitHub_workspace (a dynamic path) is like working directory for your github actions, try using run echo to see more
Cool tip: when you are watching a file in GitHub press . to open VS code in browser, another way to do it is change github.com in the url to gitHub.dev
Travis added final commit and ran CI.yml workflow which was succesful.
Checked ECR registry in AWS to see our repo image.
This team will be in charge of making sure the source code builds, a docker image gets generated, and uploaded to Amazon ECR.
Tasks
Bonus Points
Completed CI Workflow Example