Skip to content

πŸ™ A github action to build and upload your dockerfile to the github container registry.

Notifications You must be signed in to change notification settings

getupcloud/ghcr-action

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

GHCR-Action

An opinionated workflow to build and upload your docker image to the GitHub Container Registry.

Sample Image

Example

name: Build Docker Image

on:
  push:
    branches:
      - '*'
    tags:
      - 'v*'

# Required for secrets.GITHUB_TOKEN
permissions:
  packages: write
  contents: read

jobs:
  docker:
    runs-on: ubuntu-latest
    steps:
      - name: GHCR-Action
        uses: KuhlTime/ghcr-action@v1
        with:
          token: ${{ secrets.GITHUB_TOKEN }}

Optionally you can add further build-time arguments that get passed to docker on build:

        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          build-args: |
            MY_ENV_VARIABLE: "Hello GitHub!"

About

πŸ™ A github action to build and upload your dockerfile to the github container registry.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published