Skip to content

Commit

Permalink
feat: upgrade deps on composite actions (#239)
Browse files Browse the repository at this point in the history
* chore: bump all deps for docker build and push

* more cleanup

* go

* old stale code
  • Loading branch information
jakeyheath authored Jan 10, 2024
1 parent b2a74da commit 3387a66
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
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)}`);

0 comments on commit 3387a66

Please sign in to comment.