Skip to content

Commit

Permalink
Add jinja-cli image
Browse files Browse the repository at this point in the history
  • Loading branch information
Joker9944 committed Aug 24, 2024
1 parent 68df794 commit 1a88aae
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/jinja-cli.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: jinja-cli

on:
workflow_dispatch:
push:
paths:
- images/jinja-cli/Dockerfile
branches:
- main

jobs:
call-workflow-passing-data:
uses: Joker9944/k8s-config/.github/workflows/docker-publish.yml@main
with:
image_name: joker9944/jinja-cli
upstream_image_name: python
context: images/jinja-cli
secrets: inherit
permissions:
packages: write
id-token: write
contents: read
10 changes: 10 additions & 0 deletions images/jinja-cli/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM python:3.12.5@sha256:e3d5b6f95ce66923b5e48a06ee5755abb097de96a8617c3f2f7d431d48e63d35

COPY requirements.txt ./
RUN \
pip install --no-cache-dir -r requirements.txt && \
rm requirements.txt

LABEL org.opencontainers.image.description="Python image with jinja2-cli installed"

ENTRYPOINT ["jinja2"]
1 change: 1 addition & 0 deletions images/jinja-cli/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
jinja2-cli==0.8.2

0 comments on commit 1a88aae

Please sign in to comment.