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.sha }} |
Usage¶
jobs:
job1:
uses: tx-pts-dai/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.sha }}