Skip to content

Commit 5b802e1

Browse files
committed
allow readme to be skipped, update readme
1 parent 3416319 commit 5b802e1

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed

action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ inputs:
5050
required: true
5151
default: ''
5252

53+
skip_readme:
54+
description: 'When set to true the readme fill will not be generated.'
55+
required: true
56+
default: 'false'
57+
5358
include_prereleases:
5459
description: 'If set to true prereleases (alpha, beta, rc) will also be built.'
5560
required: true
@@ -97,6 +102,7 @@ runs:
97102
INCLUDE_PRERELEASE: ${{ inputs.include_prereleases }}
98103
BUILDER_WORKFLOW_PATH: ${{ inputs.action_path }}
99104
EXCLUDE_VERSIONS: ${{ inputs.exclude_versions }}
105+
SKIP_README: ${{ inputs.skip_readme }}
100106

101107
- name: "Push"
102108
shell: bash

scripts/update_readme.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#!/usr/bin/env bash
2+
3+
if [[ $SKIP_README == "true" ]]; then
4+
echo "Generation of README.md is disabled."
5+
exit 0
6+
fi
7+
28
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
39
export PACKAGE_VERSIONS=$($SCRIPT_DIR/latest_versions.py $PACKAGE ${MAX_VERSIONS:-10})
410

templates/README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,32 @@
33

44
{{ description }}
55

6+
## Benefits
7+
8+
### Multi Architecture Builds
9+
10+
Every tag in this repository supports these architectures:
11+
12+
{% for platform in platforms -%}
13+
* {{ platform }}
14+
{% endfor %}
15+
16+
### Small Images via Multi Stage Builds
17+
18+
All libraries are compiled in one image before being moved into the final published image. This keeps all of the build tools out of the published container layers.
19+
20+
### No Rate Limits
21+
22+
This project uses the Github Container Registry to store images, which have no rate limiting on pulls (unlike Docker Hub).
23+
24+
### Rapid Building of New Versions
25+
26+
Within 30 minutes of a new release to {{ package }} on PyPI builds will kick off for new containers. This means new versions can be used in hours, not days.
27+
28+
### Regular Updates
29+
30+
Containers are rebuilt weekly in order to take on the security patches from upstream containers.
31+
632
{{ quick_start }}
733

834
## Python Versions

0 commit comments

Comments
 (0)