This repository contains Github actions related to Genropy projects.
Maintainer: Christopher R. Gabriel cgabriel@softwell.it
Create a workflow file (e.g., .github/workflows/docker-build.yml) in your repository:
name: Build and Push Docker Image
on: [push]
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: genropy/actions@main
with:
image_name: your-project-name
instance_name: your-instance-name
org_clone_token: ${{ secrets.SOFTWELL_CI_BUILD_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}Replace:
your-project-namewith your Docker image nameyour-instance-namewith your genropy instance name
image_name- Name of the Docker image to buildinstance_name- Instance name for genropy operationsorg_clone_token- GitHub token with access to private repositoriesgithub_token- GitHub token for container registry authentication (use${{ secrets.GITHUB_TOKEN }})
registry- Container registry URL (default:ghcr.io)python_version- Python version to use (default:3.11)
name: Build and Push Docker Image
on:
push:
branches:
- main
- develop
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: genropy/actions@main
with:
image_name: my-application
instance_name: my-app-instance
registry: ghcr.io
python_version: '3.12'
org_clone_token: ${{ secrets.SOFTWELL_CI_BUILD_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}Your repository needs:
- A valid genropy configuration for the instance
- The
SOFTWELL_CI_BUILD_TOKENsecret configured in repository settings - Proper permissions for GitHub Actions to push to the container registry
You can reference specific versions of the action:
@main- Latest version (recommended for testing)@v1.0.0- Specific tagged version (recommended for production)@abc1234- Specific commit hash