-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from mr-smithers-excellent/feature/add-build-args
Add support for Docker build args
- Loading branch information
Showing
8 changed files
with
147 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,21 +3,21 @@ | |
|
||
Builds a Docker image and pushes it to the private registry of your choosing. | ||
|
||
## Requirements | ||
## Basic usage | ||
|
||
* [GitHub Actions Beta](https://github.com/features/actions) program participation | ||
* Run [checkout action](https://github.com/actions/checkout) before using this action | ||
* Ensure you run the [checkout action](https://github.com/actions/checkout) before using this action | ||
* Add the following to a workflow `.yml` file in the `/.github` directory of your repo | ||
```yaml | ||
steps: | ||
- uses: actions/[email protected] | ||
|
||
- uses: mr-smithers-excellent/docker-build-push@v1.0 | ||
- uses: mr-smithers-excellent/docker-build-push@v2 | ||
with: | ||
image: repo/image | ||
tag: latest | ||
registry: registry-url.io | ||
dockerfile: Dockerfile.ci | ||
username: username | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
``` | ||
|
@@ -29,6 +29,7 @@ steps: | |
| tag | Docker image tag (see [Tagging the image with GitOps](#tagging-the-image-using-gitops)) | No | | ||
| registry | Docker registry host | Yes | | ||
| dockerfile | Location of Dockerfile (defaults to `Dockerfile`) | No | | ||
| buildArgs | Docker build arguments in format `KEY=VALUE,KEY=VALUE` | No | | ||
| username | Docker registry username | No | | ||
| password | Docker registry password or token | No | | ||
|
||
|
@@ -40,7 +41,7 @@ steps: | |
* Modify sample below and include in your workflow `.github/workflows/*.yml` file | ||
|
||
```yaml | ||
uses: mr-smithers-excellent/docker-build-push@v1.0 | ||
uses: mr-smithers-excellent/docker-build-push@v2 | ||
with: | ||
image: docker-hub-repo/image-name | ||
registry: docker.io | ||
|
@@ -57,7 +58,7 @@ with: | |
* Ensure you set the username to `_json_key` | ||
|
||
```yaml | ||
uses: mr-smithers-excellent/docker-build-push@v1.0 | ||
uses: mr-smithers-excellent/docker-build-push@v2 | ||
with: | ||
image: gcp-project/image-name | ||
registry: gcr.io | ||
|
@@ -73,7 +74,7 @@ with: | |
* Modify sample below and include in your workflow `.github/workflows/*.yml` file | ||
|
||
```yaml | ||
uses: mr-smithers-excellent/docker-build-push@v1.0 | ||
uses: mr-smithers-excellent/docker-build-push@v2 | ||
with: | ||
image: image-name | ||
registry: [aws-account-number].dkr.ecr.[region].amazonaws.com | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const maxBufferSize = 50 * 1024 * 1024; | ||
|
||
module.exports = maxBufferSize; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters