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

feat: upgrade deps on composite actions #239

Merged
merged 6 commits into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
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
17 changes: 9 additions & 8 deletions .github/actions/docker-build-push/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,19 @@ outputs:
tags:
description: "The tags we built and pushed"
value: ${{ steps.meta.outputs.tags }}
json:
description: "The tags JSON we built and pushed"
value: ${{ steps.meta.outputs.json }}
runs:
using: "composite"
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v5
with:
images: ${{ inputs.registry }}/${{ inputs.name }}
tags: |
Expand All @@ -52,15 +54,15 @@ runs:
type=sha,format=long,prefix=sha-
${{ inputs.custom_tag }}
- name: Login to ECR
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ${{ inputs.registry }}
- name: Calculate Branch and Base Names
id: refs
uses: chanzuckerberg/github-actions/.github/actions/[email protected]
- name: Calculate Cache-From
id: cache-from
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
let cacheFrom = [
Expand All @@ -70,9 +72,8 @@ runs:
.map(ref => `type=registry,ref=${{ inputs.registry }}/${{ inputs.name }}:branch-${ref}`).join('\r\n');
console.log(`Will use cached images from ${JSON.stringify(cacheFrom, null, 2)}`);
core.setOutput("cacheFrom", cacheFrom);

- name: Build and push
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
file: ${{ inputs.dockerfile }}
context: ${{ inputs.context }}
Expand Down
5 changes: 2 additions & 3 deletions .github/actions/get-github-ref-names/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ runs:
steps:
- name: Calculate Refs
id: refs
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
let eventName = context.eventName;
Expand Down Expand Up @@ -48,5 +48,4 @@ runs:

core.setOutput("headRef", head);
core.setOutput("baseRef", base);
console.log(`Calculated the following ${JSON.stringify({eventName,base,head}, null, 2)}`);
# bump3
console.log(`Calculated the following ${JSON.stringify({eventName,base,head}, null, 2)}`);
Loading