https://github.com/zvfvrv/docker-bpgpr
GitHub Action - Builds and pushes Docker images to GitHub Package Registry
https://github.com/zvfvrv/docker-bpgpr
container docker github-actions github-package-registry github-packages package registry
Last synced: 6 days ago
JSON representation
GitHub Action - Builds and pushes Docker images to GitHub Package Registry
- Host: GitHub
- URL: https://github.com/zvfvrv/docker-bpgpr
- Owner: zvfvrv
- License: apache-2.0
- Created: 2020-06-21T18:14:41.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T15:48:26.000Z (about 3 years ago)
- Last Synced: 2025-03-30T16:46:29.871Z (10 months ago)
- Topics: container, docker, github-actions, github-package-registry, github-packages, package, registry
- Language: JavaScript
- Homepage:
- Size: 1.29 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker Build Push to GitHub Package Registry
Builds and pushes Docker images to GitHub Package Registry
## Usage examples:
### Build and publish Docker Image with ref and sha tag
```yaml
steps:
- uses: actions/checkout@v2
name: Check out code
- name: Build and Publish Docker image
uses: zvfvrv/docker-bpgpr@1.0.0
with:
gh_token: ${{ secrets.TOKEN_GH }}
image_name: test
tag_with_ref: true
tag_with_sha: true
path: ./test
dockerfile: Dockerfile
```
### Build and publish Docker Image with a `latest` tag
```yaml
steps:
- uses: actions/checkout@v2
name: Check out code
- name: Build and Publish Docker image
uses: zvfvrv/docker-bpgpr@1.0.0
with:
gh_token: ${{ secrets.TOKEN_GH }}
image_name: test
tags: latest
path: ./test
dockerfile: Dockerfile
```
### Build without publish Docker Image
```yaml
steps:
- uses: actions/checkout@v2
name: Check out code
- name: Build and Publish Docker image
uses: zvfvrv/docker-bpgpr@1.0.0
with:
gh_token: ${{ secrets.TOKEN_GH }}
image_name: test
tag_with_ref: true
tag_with_sha: true
path: ./test
dockerfile: Dockerfile
target: withcurl
push: false
```