https://github.com/tbxark/docker-action
GitHub Action to build and push Docker images with Buildx
https://github.com/tbxark/docker-action
docker docker-builder github-actions
Last synced: 7 months ago
JSON representation
GitHub Action to build and push Docker images with Buildx
- Host: GitHub
- URL: https://github.com/tbxark/docker-action
- Owner: TBXark
- License: mit
- Created: 2024-09-14T02:00:14.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-09-14T12:21:21.000Z (about 1 year ago)
- Last Synced: 2025-01-19T21:43:23.405Z (9 months ago)
- Topics: docker, docker-builder, github-actions
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker Action
This action builds and publishes a Docker image to a specified registry. It also has support for pushing to a backup registry if the main registry is rate-limited.
## Inputs
- `docker_registry`: The Docker registry to push the image to.
- `docker_username`: The username for the Docker registry.
- `docker_password`: The password for the Docker registry.
- `docker_push_webhook`: The webhook to push the image to.
- `backup_registry`: The backup Docker registry to push the image to.
- `backup_username`: The username for the backup Docker registry.
- `backup_password`: The password for the backup Docker registry.
- `backup_push_webhook`: The webhook to push the image to the backup registry.## Usage
```yaml
uses: TBXark/docker-action@master
with:
docker_registry: ${{ secrets.DOCKER_REGISTRY }}
docker_username: ${{ secrets.DOCKER_USERNAME }}
docker_password: ${{ secrets.DOCKER_PASSWORD }}
docker_push_webhook: ${{ secrets.DOCKER_PUSH_WEBHOOK }}
backup_registry: ${{ secrets.BACKUP_REGISTRY }}
backup_username: ${{ secrets.BACKUP_USERNAME }}
backup_password: ${{ secrets.BACKUP_PASSWORD }}
backup_push_webhook: ${{ secrets.BACKUP_PUSH_WEBHOOK }}
```## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.