1
0
mirror of synced 2026-01-07 00:01:39 -05:00

fix incorrect code languages

This commit is contained in:
Rachael Sewell
2023-09-25 11:45:59 -07:00
parent 2f405bbe6a
commit b97dc02fcc
3 changed files with 17 additions and 8 deletions

View File

@@ -79,7 +79,7 @@ ENTRYPOINT ["/entrypoint.sh"]
Using the example Dockerfile above, {% data variables.product.product_name %} will send the `args` configured in the action's metadata file as arguments to `entrypoint.sh`. Add the `#!/bin/sh` [shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)) at the top of the `entrypoint.sh` file to explicitly use the system's [POSIX](https://en.wikipedia.org/wiki/POSIX)-compliant shell.
``` sh
```shell
#!/bin/sh
# `$#` expands to the number of arguments and `$@` expands to the supplied `args`
@@ -90,13 +90,13 @@ printf '\n'
Your code must be executable. Make sure the `entrypoint.sh` file has `execute` permissions before using it in a workflow. You can modify the permission from your terminal using this command:
``` sh
```shell
chmod +x entrypoint.sh
```
When an `ENTRYPOINT` shell script is not executable, you'll receive an error similar to this:
``` sh
```shell
Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"/entrypoint.sh\": permission denied": unknown
```

View File

@@ -43,12 +43,16 @@ Before creating your {% data variables.product.prodname_actions %} workflow, you
For example, using [the AWS CLI](https://aws.amazon.com/cli/):
{% raw %}```bash copy
{% raw %}
```bash copy
aws ecr create-repository \
--repository-name MY_ECR_REPOSITORY \
--region MY_AWS_REGION
```{% endraw %}
```
{% endraw %}
Ensure that you use the same Amazon ECR repository name (represented here by `MY_ECR_REPOSITORY`) for the `ECR_REPOSITORY` variable in the workflow below.
@@ -64,10 +68,15 @@ Before creating your {% data variables.product.prodname_actions %} workflow, you
The format of the file should be the same as the output generated by:
{% raw %}```bash copy
{% raw %}
```bash copy
aws ecs register-task-definition --generate-cli-skeleton
```{% endraw %}
```
{% endraw %}
Ensure that you set the `ECS_TASK_DEFINITION` variable in the workflow below as the path to the JSON file.

View File

@@ -300,7 +300,7 @@ gh actions-importer audit circle-ci --output-dir ./output/ --include-from reposi
The file supplied for this parameter must be a a line-delimited list of repositories, for example:
```txt
```text
repository_one
repository_two
repository_three