-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
31 lines (29 loc) · 1.14 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#------------------------------------------------------------------------------
#
#
# see
# - https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions
# - https://docs.github.com/en/actions/creating-actions/creating-a-composite-action
#
#------------------------------------------------------------------------------
name: '"Create AWS ECR Repository" Action For GitHub Actions'
description: 'Build a Docker container for the hastexo Backup plugin and upload to AWS ECR'
branding:
icon: 'cloud'
color: 'orange'
inputs:
aws-ecr-repository:
description: 'The name of the repository to create in AWS Elastic Container Registry (ECR) in your AWS account. Defaults to "openedx"'
required: false
default: 'openedx'
runs:
using: "composite"
steps:
- uses: actions/checkout@v4.1.1
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
- name: Create the repository
shell: bash
run: |
aws ecr describe-repositories --repository-names ${{ inputs.aws-ecr-repository }} || aws ecr create-repository --repository-name ${{ inputs.aws-ecr-repository }}