Creates a new batch job given a batch job definition
Table of Contents
- Amazon Batch "Register Job Definition" Action for GitHub Actions
- Usage
- License Summary
- Security Disclosures
To insert the image URI amazon/amazon-batch-sample:latest as the image in the job definition file, and then register the edited task definition file to AWS batch:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_ACCESS_SECRET }}
aws-region: ${{ secrets.AWS_DEFAULT_REGION }}
- name: Render Amazon Batch job definition
id: render-job-def
uses: jon-evergreen/amazon-batch-render-job-definition@v1.0.1
with:
task-definition: job-definition.json
image: amazon/amazon-batch-sample:latest
- name: Register with Amazon Batch service
uses: K3vChan/amazon-batch-register-job-definition@v1.0.0
with:
job-definition: ${{ steps.render-job-def.outputs.job-definition }}See action.yml for the full documentation for this action's inputs and outputs.
This code is made available under the MIT license.
If you would like to report a potential security issue in this project, please do not create a GitHub issue.