Create ephemeral environment Docker image for ubuntu/debian base and output k8s manifests #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Create ephemeral environment image for Python apps | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| base_image: | |
| description: "Base python image to build from" | |
| required: true | |
| default: "python:3.12-slim" | |
| packages: | |
| description: "Pip packages to install" | |
| required: false | |
| cpu: | |
| description: "CPU allocation" | |
| required: true | |
| default: "256m" | |
| memory: | |
| description: "Memory allocation" | |
| required: true | |
| default: "512Mi" | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Show selected inputs | |
| run: | | |
| echo "Base image to build: ${{ github.event.inputs.base_image }}" | |
| echo "Packages to be installed: ${{ github.event.inputs.packages }}" | |
| echo "CPU Requested: ${{ github.event.inputs.cpu }}" | |
| echo "Memory Requested: ${{ github.event.inputs.memory }}" |