Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
package

GitHub Action

docker-bpgpr

v1.0.1

docker-bpgpr

package

docker-bpgpr

Builds and pushes Docker images to GitHub Package Registry

Installation

Copy and paste the following snippet into your .yml file.

              

- name: docker-bpgpr

uses: zvfvrv/[email protected]

Learn more about this action in zvfvrv/docker-bpgpr

Choose a version

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

    steps:
    - uses: actions/checkout@v2
      name: Check out code

    - name: Build and Publish Docker image
      uses: zvfvrv/[email protected]
      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

    steps:
    - uses: actions/checkout@v2
      name: Check out code

    - name: Build and Publish Docker image
      uses: zvfvrv/[email protected]
      with:
        gh_token: ${{ secrets.TOKEN_GH }}
        image_name: test
        tags: latest
        path: ./test
        dockerfile: Dockerfile

Build and without publish Docker Image

    steps:
    - uses: actions/checkout@v2
      name: Check out code

    - name: Build and Publish Docker image
      uses: zvfvrv/[email protected]
      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