https://github.com/aboutbits/github-actions-docker
GitHub Actions - Docker
https://github.com/aboutbits/github-actions-docker
docker github-actions
Last synced: 5 months ago
JSON representation
GitHub Actions - Docker
- Host: GitHub
- URL: https://github.com/aboutbits/github-actions-docker
- Owner: aboutbits
- License: mit
- Created: 2023-07-11T08:42:19.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-29T08:21:53.000Z (over 1 year ago)
- Last Synced: 2025-01-08T05:51:25.881Z (about 1 year ago)
- Topics: docker, github-actions
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# GitHub Actions Docker
A collection of Docker related GitHub actions.
## Actions
### Build and Push
Build and push a docker image using a Dockerfile.
#### Example
```yaml
- uses: aboutbits/github-actions-docker/build-push@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
docker-image: ghcr.io/aboutbits/my-app
docker-tag: latest
build-args: |
ARG1=abc
ARG2=xyz
```
#### Inputs
The following inputs can be used as `step.with` keys:
| Name | Required/Default | Description |
|-----------------------|------------------|--------------------------------------------------------------------|
| `registry` | `ghcr.io` | Docker registry |
| `username` | required | Registry username |
| `password` | required | Registry password |
| `docker-image` | required | Docker image name |
| `docker-tag` | required | Docker image tag |
| `working-directory` | `.` | The working directory |
| `dockerfile` | `Dockerfile` | Path to the Dockerfile. (default {working-directory}/Dockerfile) |
| `build-args` | / | List of build-time variables |
## Build & Publish
To build and publish the action, visit the GitHub Actions page of the repository and trigger the workflow "Release Package" manually.
## Information
About Bits is a company based in South Tyrol, Italy. You can find more information about us on [our website](https://aboutbits.it).
### Support
For support, please contact [info@aboutbits.it](mailto:info@aboutbits.it).
### Credits
- [All Contributors](../../contributors)
### License
The MIT License (MIT). Please see the [license file](license.md) for more information.