-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: upgrade deps on composite actions (#239)
* chore: bump all deps for docker build and push * more cleanup * go * old stale code
- Loading branch information
1 parent
b2a74da
commit 3387a66
Showing
2 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | | ||
|
@@ -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 = [ | ||
|
@@ -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 }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters