Skip to content

Latest commit

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

lunni/github-action

Build Docker image and update it on a Lunni server.

Usage

name: Push into main branchon:
push:
branches: ["master"]jobs:
context:
runs-on: ubuntu-lateststeps:
- name: Checkoutuses: actions/checkout@v3
- name: Buildid: builduses: lunnihq/github-action@mainwith:
password: ${{ secrets.GITHUB_TOKEN }}lunni-webhook-url: "${{ env.LUNNI_WEBHOOK_URL }}"outputs:
image: ${{ steps.build.outputs.image }}tag: ${{ steps.build.outputs.tag }}

Inputs

NameDescription
contextBuild's context is the set of files located in the specified PATH or URL
filePath to the Dockerfile
image_nameImage name (excluding registry). Defaults to ${{ github.repository }}.
registryDocker registry. Defaults to ghcr.io.
usernameDocker username. Defaults to ${{ github.actor }}.
passwordDocker password. Set this to ${{ secrets.GITHUB_TOKEN }} if publishing to GHCR.
lunni-webhook-urlLunni service webhook
build-argsList of build-time variables
cache-fromList of external cache sources for buildx (e.g., user/app:cache, type=local,src=path/to/dir)
cache-toList of cache export destinations for buildx (e.g., user/app:cache, type=local,dest=path/to/dir)
platformsList of target platforms for build (e.g. linux/amd64,linux/arm64,linux/riscv64,linux/ppc64le,linux/s390x,etc)
provenanceGenerate provenance attestation for the build
sshList of SSH agent socket or keys to expose to the build
tagsList of tags (docs)
flavorDefines a global behavior for tags: (docs1
targetSets the target stage to build
secretsList of secrets to expose to the build (e.g., key=string, GIT_AUTH_TOKEN=mytoken)
secret-filesList of secret files to expose to the build (e.g., key=filename, MY_SECRET=./secret.txt)
docker-metadata-pr-head-shaSet to true to tag images with the PR HEAD SHA instead of the merge commit SHA within pull requests.

Outputs

NameDescription
imageDocker image name
metadataDocker image metadata
tagDocker image tag

License

License

This action is heavily based on github-action-docker-build-push by Cloud Posse. Check them out!

About

Build Docker image and update it on a Lunni server

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors