Docker Push to ECR¶
Description¶
This workflow pushes a Docker artifact to an ECR repository.
Inputs¶
name | description | type | required | default |
---|---|---|---|---|
environment |
Environment to deploy |
string |
false |
"" |
aws_account_id |
AWS Account ID |
string |
false |
"" |
aws_region |
AWS Region |
string |
false |
"" |
aws_role_name |
AWS Role Name |
string |
false |
"" |
aws_oidc_role_arn |
AWS OIDC IAM role to assume |
string |
false |
"" |
image_name |
Name of the Docker image to build |
string |
false |
"" |
image_tag |
Tag of the Docker image to build |
string |
false |
${{ github.event.pull_request.head.sha || github.sha }} |
artifact_name |
Artifact name. If not set, it will be derived from the image name. |
string |
false |
"" |
Usage¶
jobs:
job1:
uses: dnd-it/github-workflows/.github/workflows/docker-push-ecr.yaml@v2
with:
environment:
# Environment to deploy
#
# Type: string
# Required: false
# Default: ""
aws_account_id:
# AWS Account ID
#
# Type: string
# Required: false
# Default: ""
aws_region:
# AWS Region
#
# Type: string
# Required: false
# Default: ""
aws_role_name:
# AWS Role Name
#
# Type: string
# Required: false
# Default: ""
aws_oidc_role_arn:
# AWS OIDC IAM role to assume
#
# Type: string
# Required: false
# Default: ""
image_name:
# Name of the Docker image to build
#
# Type: string
# Required: false
# Default: ""
image_tag:
# Tag of the Docker image to build
#
# Type: string
# Required: false
# Default: ${{ github.event.pull_request.head.sha || github.sha }}
artifact_name:
# Artifact name. If not set, it will be derived from the image name.
#
# Type: string
# Required: false
# Default: ""