Skip to content

Commit

Permalink
Upgrade actions to address node deprecation (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
ozydingo authored Jul 16, 2024
1 parent 751bbe8 commit 4e46acc
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,53 +1,53 @@
name: 'Docker build and push'
description: 'Simple Docker build and push action'
name: "Docker build and push"
description: "Simple Docker build and push action"
author: hello@cloudposse.com
branding:
icon: 'box'
color: 'white'
icon: "box"
color: "white"
inputs:
workdir:
description: 'Working directory'
description: "Working directory"
required: false
default: './'
default: "./"
file:
description: 'Dockerfile name'
description: "Dockerfile name"
required: false
default: 'Dockerfile'
default: "Dockerfile"
build-args:
description: "List of build-time variables"
required: false
organization:
description: 'Organization'
description: "Organization"
required: true
repository:
description: 'Repository'
description: "Repository"
required: true
registry:
description: 'Docker registry'
description: "Docker registry"
required: true
target:
description: "Sets the target stage to build"
required: false
default: ''
default: ""
platforms:
description: "List of target platforms for build (e.g. linux/amd64,linux/arm64,linux/riscv64,linux/ppc64le,linux/s390x,etc)"
required: false
default: 'linux/amd64'
default: "linux/amd64"
provenance:
description: "Generate provenance attestation for the build"
required: false
image_name:
description: "Image name (excluding registry). Defaults to {{$organization/$repository}}."
required: false
default: ''
default: ""
login:
description: 'Docker login'
description: "Docker login"
required: false
default: ''
default: ""
password:
description: 'Docker password'
description: "Docker password"
required: false
default: ''
default: ""
cache-from:
description: "List of external cache sources for buildx (e.g., user/app:cache, type=local,src=path/to/dir)"
required: false
Expand Down Expand Up @@ -97,7 +97,7 @@ runs:
fi
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
env:
# Annoyingly, docker computes the SHA tags independently of any checkout
# action. This option tells this action to use the PR HEAD SHA during a
Expand Down Expand Up @@ -142,23 +142,23 @@ runs:
docker context create buildx-context || true
- 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
with:
endpoint: buildx-context

- name: Login
uses: docker/#-action@v2
uses: docker/#-action@v3
if: ${{ contains(inputs.registry, '.amazonaws.com') || ( inputs.login != '' && inputs.password != '' ) }}
with:
registry: ${{ inputs.registry }}
username: ${{ inputs.login }}
password: ${{ inputs.password }}

- name: Build and push Docker images
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
id: docker-build-push-action
with:
context: ${{ inputs.workdir }}
Expand Down

0 comments on commit 4e46acc

Please # to comment.