Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cache to Docker layers #31

Merged
merged 3 commits into from
Oct 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Cache Docker layers
uses: satackey/[email protected]
continue-on-error: true

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
Expand All @@ -21,10 +25,10 @@ jobs:
run: aws ecr-public get-login-password --region ${{ secrets.AWS_REGION }} | docker login --username AWS --password-stdin public.ecr.aws/h4u2q3r3

- name: Build Docker AMI
run: docker build -t aws-codebuild-cloud-native-buildpacks .
run: docker build -t maestro .

- name: Tag Docker AMI
run: docker tag aws-codebuild-cloud-native-buildpacks:latest public.ecr.aws/h4u2q3r3/aws-codebuild-cloud-native-buildpacks:${GITHUB_REF:10}
run: docker tag maestro:latest public.ecr.aws/h4u2q3r3/maestro:${GITHUB_REF:10}

- name: Push Docker AMI
run: docker push public.ecr.aws/h4u2q3r3/aws-codebuild-cloud-native-buildpacks:${GITHUB_REF:10}
run: docker push public.ecr.aws/h4u2q3r3/maestro:${GITHUB_REF:10}