| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This repository contains reusable GitHub Actions workflows that can be shared across all repositories within the organization.
This .github repository serves as a centralized location for:
A reusable workflow for building and publishing Docker images to any registry supported by Docker login credentials. This workflow handles:
To use this workflow in your repository, create a workflow file (e.g., .github/workflows/deploy.yml) with the following content:
name: Build and Publish Docker Image
on:
push:
branches:
- main
permissions:
contents: read
packages: write
jobs:
docker:
uses: IntegralEnvision/.github/.github/workflows/docker-build-cicd.yml@main
with:
image_name: "your-app/your-service"
registry: "ghcr.io"
dockerfile_path: "Dockerfile" # Optional, defaults to "Dockerfile"
platforms: "linux/amd64" # Optional, defaults to "linux/amd64"
build_args: |
BUILD_ARG_1=value1
secrets:
REGISTRY_USERNAME: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}| Input | Description | Example |
|---|---|---|
| image_name | Docker image name | "shinyapps/app-flood" |
| registry | Container registry hostname | "ghcr.io" |
| Input | Description | Default | Example |
|---|---|---|---|
| dockerfile_path | Path to Dockerfile | "Dockerfile" | "docker/Dockerfile" |
| platforms | Target platforms for build | "linux/amd64" | "linux/amd64,linux/arm64" |
| build_args | Multiline Docker build args | "" | "FOO=bar" |
You must configure the following secrets in your repository or organization:
| Secret | Description |
|---|---|
| REGISTRY_USERNAME | Username for the target registry |
| REGISTRY_PASSWORD | Password or token for the target registry |
The reusable workflow exposes these outputs:
| Output | Description |
|---|---|
| image_tag | Short SHA tag, for example "abc1234" |
| image | Full SHA-tagged image reference |
| latest_image | Full latest image reference |
The workflow automatically generates the following tags for your Docker image:
Example: abc1234 and latest
To use the Docker build workflow, configure credentials that can push to your target registry.
For ghcr.io, you can typically use:
Add the following secrets to your repository (Settings → Secrets and variables → Actions):
When adding new reusable workflows:
.github/ ├── workflows/ │ └── docker-build-cicd.yml # Generic Docker build/publish workflow ├── examples/ │ ├── dma-k8s-docker-build-cicd.yaml # Legacy example │ └── docker-build-cicd.yml # Generic workflow example ├── profile/ │ ├── README.md # Organization profile │ └── logo.png # Organization logo └── README.md # This file
For questions or issues with these workflows, please:
| Back | FazBrowse Home | New Git URL |