Skip to content

Commit

Permalink
Enhancement: Add all older variants < 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
leojonathanoh committed Nov 7, 2023
1 parent 78c1653 commit 167cd45
Show file tree
Hide file tree
Showing 25 changed files with 1,894 additions and 2 deletions.
1,353 changes: 1,353 additions & 0 deletions .github/workflows/ci-master-pr.yml

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ Dockerized [pagefind](https://github.com/CloudCannon/pagefind).
| Tag | Dockerfile Build Context |
|:-------:|:---------:|
| `:1.0.3`, `:latest` | [View](variants/1.0.3) |
| `:0.12.0`, `:latest` | [View](variants/0.12.0) |
| `:0.11.0`, `:latest` | [View](variants/0.11.0) |
| `:0.10.7`, `:latest` | [View](variants/0.10.7) |
| `:0.9.3`, `:latest` | [View](variants/0.9.3) |
| `:0.8.1`, `:latest` | [View](variants/0.8.1) |
| `:0.7.1`, `:latest` | [View](variants/0.7.1) |
| `:0.6.1`, `:latest` | [View](variants/0.6.1) |
| `:0.5.3`, `:latest` | [View](variants/0.5.3) |
| `:0.4.1`, `:latest` | [View](variants/0.4.1) |
| `:0.3.2`, `:latest` | [View](variants/0.3.2) |
| `:0.2.0`, `:latest` | [View](variants/0.2.0) |

## Usage

Expand Down
15 changes: 13 additions & 2 deletions generate/definitions/versions.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
{
"pagefind": {
"versions": [
"1.0.3"
"1.0.3",
"0.12.0",
"0.11.0",
"0.10.7",
"0.9.3",
"0.8.1",
"0.7.1",
"0.6.1",
"0.5.3",
"0.4.1",
"0.3.2",
"0.2.0"
],
"versionsChangeScope": "minor",
"versionsNewScript": "Invoke-WebRequest https://api.github.com/repos/CloudCannon/pagefind/git/refs/tags | ConvertFrom-Json | % { $_.ref -replace 'refs/tags/v', '' } | ? { $_ -match '^\\d+\\.\\d+\\.\\d+$' } | Sort-Object { [version]$_ } -Descending | ? { [version]$_ -ge [version]'1.0' }"
"versionsNewScript": "Invoke-WebRequest https://api.github.com/repos/CloudCannon/pagefind/git/refs/tags | ConvertFrom-Json | % { $_.ref -replace 'refs/tags/v', '' } | ? { $_ -match '^\\d+\\.\\d+\\.\\d+$' } | Sort-Object { [version]$_ } -Descending"
}
}
39 changes: 39 additions & 0 deletions variants/0.10.7/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
FROM alpine:3.17
# Install pagefind_extended
RUN set -eux; \
PAGEFIND_EXTENDED_VERSION=v0.10.7; \
case "$( uname -m )" in \
'x86') \
URL="https://github.com/CloudCannon/pagefind/releases/download/v0.10.7/pagefind_extended-v1.0.3-x86_64-unknown-linux-musl.tar.gz"; \
SHA256=aec60f1db9fd693986b2c3d6253f98e6710e5046a371fc1c7e3ecc5fc982a95d; \
;; \
'x86_64') \
URL="https://github.com/CloudCannon/pagefind/releases/download/v0.10.7/pagefind_extended-v1.0.3-x86_64-unknown-linux-musl.tar.gz"; \
SHA256=aec60f1db9fd693986b2c3d6253f98e6710e5046a371fc1c7e3ecc5fc982a95d; \
;; \
'aarch64') \
URL="https://github.com/CloudCannon/pagefind/releases/download/v0.10.7/pagefind_extended-v1.0.3-aarch64-unknown-linux-musl.tar.gz"; \
SHA256=575885fb7086a31b9322b7bba0b0baf57bb2586b1fcc7661a88a73ffe17c8134; \
;; \
*) \
echo "Architecture not supported"; \
exit 1; \
;; \
esac; \
FILE=pagefind_extended.tar.gz; \
wget -q "$URL" -O "$FILE"; \
echo "$SHA256 $FILE" | sha256sum -c -; \
tar -xvf "$FILE" --no-same-owner --no-same-permissions -- pagefind_extended; \
rm -f "$FILE"; \
mkdir -pv /usr/local/bin; \
mv -v pagefind_extended /usr/local/bin/pagefind_extended; \
chmod +x /usr/local/bin/pagefind_extended; \
pagefind_extended --version; \
:

COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x docker-entrypoint.sh

WORKDIR /
ENTRYPOINT [ "/docker-entrypoint.sh" ]
CMD [ "pagefind_extended", "--site", "/public" ]
8 changes: 8 additions & 0 deletions variants/0.10.7/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh
set -eu

if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then
set -- pagefind_extended "$@"
fi

exec "$@"
39 changes: 39 additions & 0 deletions variants/0.11.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
FROM alpine:3.17
# Install pagefind_extended
RUN set -eux; \
PAGEFIND_EXTENDED_VERSION=v0.11.0; \
case "$( uname -m )" in \
'x86') \
URL="https://github.com/CloudCannon/pagefind/releases/download/v0.11.0/pagefind_extended-v1.0.3-x86_64-unknown-linux-musl.tar.gz"; \
SHA256=aec60f1db9fd693986b2c3d6253f98e6710e5046a371fc1c7e3ecc5fc982a95d; \
;; \
'x86_64') \
URL="https://github.com/CloudCannon/pagefind/releases/download/v0.11.0/pagefind_extended-v1.0.3-x86_64-unknown-linux-musl.tar.gz"; \
SHA256=aec60f1db9fd693986b2c3d6253f98e6710e5046a371fc1c7e3ecc5fc982a95d; \
;; \
'aarch64') \
URL="https://github.com/CloudCannon/pagefind/releases/download/v0.11.0/pagefind_extended-v1.0.3-aarch64-unknown-linux-musl.tar.gz"; \
SHA256=575885fb7086a31b9322b7bba0b0baf57bb2586b1fcc7661a88a73ffe17c8134; \
;; \
*) \
echo "Architecture not supported"; \
exit 1; \
;; \
esac; \
FILE=pagefind_extended.tar.gz; \
wget -q "$URL" -O "$FILE"; \
echo "$SHA256 $FILE" | sha256sum -c -; \
tar -xvf "$FILE" --no-same-owner --no-same-permissions -- pagefind_extended; \
rm -f "$FILE"; \
mkdir -pv /usr/local/bin; \
mv -v pagefind_extended /usr/local/bin/pagefind_extended; \
chmod +x /usr/local/bin/pagefind_extended; \
pagefind_extended --version; \
:

COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x docker-entrypoint.sh

WORKDIR /
ENTRYPOINT [ "/docker-entrypoint.sh" ]
CMD [ "pagefind_extended", "--site", "/public" ]
8 changes: 8 additions & 0 deletions variants/0.11.0/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh
set -eu

if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then
set -- pagefind_extended "$@"
fi

exec "$@"
39 changes: 39 additions & 0 deletions variants/0.12.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
FROM alpine:3.17
# Install pagefind_extended
RUN set -eux; \
PAGEFIND_EXTENDED_VERSION=v0.12.0; \
case "$( uname -m )" in \
'x86') \
URL="https://github.com/CloudCannon/pagefind/releases/download/v0.12.0/pagefind_extended-v1.0.3-x86_64-unknown-linux-musl.tar.gz"; \
SHA256=aec60f1db9fd693986b2c3d6253f98e6710e5046a371fc1c7e3ecc5fc982a95d; \
;; \
'x86_64') \
URL="https://github.com/CloudCannon/pagefind/releases/download/v0.12.0/pagefind_extended-v1.0.3-x86_64-unknown-linux-musl.tar.gz"; \
SHA256=aec60f1db9fd693986b2c3d6253f98e6710e5046a371fc1c7e3ecc5fc982a95d; \
;; \
'aarch64') \
URL="https://github.com/CloudCannon/pagefind/releases/download/v0.12.0/pagefind_extended-v1.0.3-aarch64-unknown-linux-musl.tar.gz"; \
SHA256=575885fb7086a31b9322b7bba0b0baf57bb2586b1fcc7661a88a73ffe17c8134; \
;; \
*) \
echo "Architecture not supported"; \
exit 1; \
;; \
esac; \
FILE=pagefind_extended.tar.gz; \
wget -q "$URL" -O "$FILE"; \
echo "$SHA256 $FILE" | sha256sum -c -; \
tar -xvf "$FILE" --no-same-owner --no-same-permissions -- pagefind_extended; \
rm -f "$FILE"; \
mkdir -pv /usr/local/bin; \
mv -v pagefind_extended /usr/local/bin/pagefind_extended; \
chmod +x /usr/local/bin/pagefind_extended; \
pagefind_extended --version; \
:

COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x docker-entrypoint.sh

WORKDIR /
ENTRYPOINT [ "/docker-entrypoint.sh" ]
CMD [ "pagefind_extended", "--site", "/public" ]
8 changes: 8 additions & 0 deletions variants/0.12.0/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh
set -eu

if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then
set -- pagefind_extended "$@"
fi

exec "$@"
39 changes: 39 additions & 0 deletions variants/0.2.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
FROM alpine:3.17
# Install pagefind_extended
RUN set -eux; \
PAGEFIND_EXTENDED_VERSION=v0.2.0; \
case "$( uname -m )" in \
'x86') \
URL="https://github.com/CloudCannon/pagefind/releases/download/v0.2.0/pagefind_extended-v1.0.3-x86_64-unknown-linux-musl.tar.gz"; \
SHA256=aec60f1db9fd693986b2c3d6253f98e6710e5046a371fc1c7e3ecc5fc982a95d; \
;; \
'x86_64') \
URL="https://github.com/CloudCannon/pagefind/releases/download/v0.2.0/pagefind_extended-v1.0.3-x86_64-unknown-linux-musl.tar.gz"; \
SHA256=aec60f1db9fd693986b2c3d6253f98e6710e5046a371fc1c7e3ecc5fc982a95d; \
;; \
'aarch64') \
URL="https://github.com/CloudCannon/pagefind/releases/download/v0.2.0/pagefind_extended-v1.0.3-aarch64-unknown-linux-musl.tar.gz"; \
SHA256=575885fb7086a31b9322b7bba0b0baf57bb2586b1fcc7661a88a73ffe17c8134; \
;; \
*) \
echo "Architecture not supported"; \
exit 1; \
;; \
esac; \
FILE=pagefind_extended.tar.gz; \
wget -q "$URL" -O "$FILE"; \
echo "$SHA256 $FILE" | sha256sum -c -; \
tar -xvf "$FILE" --no-same-owner --no-same-permissions -- pagefind_extended; \
rm -f "$FILE"; \
mkdir -pv /usr/local/bin; \
mv -v pagefind_extended /usr/local/bin/pagefind_extended; \
chmod +x /usr/local/bin/pagefind_extended; \
pagefind_extended --version; \
:

COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x docker-entrypoint.sh

WORKDIR /
ENTRYPOINT [ "/docker-entrypoint.sh" ]
CMD [ "pagefind_extended", "--site", "/public" ]
8 changes: 8 additions & 0 deletions variants/0.2.0/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh
set -eu

if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then
set -- pagefind_extended "$@"
fi

exec "$@"
39 changes: 39 additions & 0 deletions variants/0.3.2/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
FROM alpine:3.17
# Install pagefind_extended
RUN set -eux; \
PAGEFIND_EXTENDED_VERSION=v0.3.2; \
case "$( uname -m )" in \
'x86') \
URL="https://github.com/CloudCannon/pagefind/releases/download/v0.3.2/pagefind_extended-v1.0.3-x86_64-unknown-linux-musl.tar.gz"; \
SHA256=aec60f1db9fd693986b2c3d6253f98e6710e5046a371fc1c7e3ecc5fc982a95d; \
;; \
'x86_64') \
URL="https://github.com/CloudCannon/pagefind/releases/download/v0.3.2/pagefind_extended-v1.0.3-x86_64-unknown-linux-musl.tar.gz"; \
SHA256=aec60f1db9fd693986b2c3d6253f98e6710e5046a371fc1c7e3ecc5fc982a95d; \
;; \
'aarch64') \
URL="https://github.com/CloudCannon/pagefind/releases/download/v0.3.2/pagefind_extended-v1.0.3-aarch64-unknown-linux-musl.tar.gz"; \
SHA256=575885fb7086a31b9322b7bba0b0baf57bb2586b1fcc7661a88a73ffe17c8134; \
;; \
*) \
echo "Architecture not supported"; \
exit 1; \
;; \
esac; \
FILE=pagefind_extended.tar.gz; \
wget -q "$URL" -O "$FILE"; \
echo "$SHA256 $FILE" | sha256sum -c -; \
tar -xvf "$FILE" --no-same-owner --no-same-permissions -- pagefind_extended; \
rm -f "$FILE"; \
mkdir -pv /usr/local/bin; \
mv -v pagefind_extended /usr/local/bin/pagefind_extended; \
chmod +x /usr/local/bin/pagefind_extended; \
pagefind_extended --version; \
:

COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x docker-entrypoint.sh

WORKDIR /
ENTRYPOINT [ "/docker-entrypoint.sh" ]
CMD [ "pagefind_extended", "--site", "/public" ]
8 changes: 8 additions & 0 deletions variants/0.3.2/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh
set -eu

if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then
set -- pagefind_extended "$@"
fi

exec "$@"
39 changes: 39 additions & 0 deletions variants/0.4.1/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
FROM alpine:3.17
# Install pagefind_extended
RUN set -eux; \
PAGEFIND_EXTENDED_VERSION=v0.4.1; \
case "$( uname -m )" in \
'x86') \
URL="https://github.com/CloudCannon/pagefind/releases/download/v0.4.1/pagefind_extended-v1.0.3-x86_64-unknown-linux-musl.tar.gz"; \
SHA256=aec60f1db9fd693986b2c3d6253f98e6710e5046a371fc1c7e3ecc5fc982a95d; \
;; \
'x86_64') \
URL="https://github.com/CloudCannon/pagefind/releases/download/v0.4.1/pagefind_extended-v1.0.3-x86_64-unknown-linux-musl.tar.gz"; \
SHA256=aec60f1db9fd693986b2c3d6253f98e6710e5046a371fc1c7e3ecc5fc982a95d; \
;; \
'aarch64') \
URL="https://github.com/CloudCannon/pagefind/releases/download/v0.4.1/pagefind_extended-v1.0.3-aarch64-unknown-linux-musl.tar.gz"; \
SHA256=575885fb7086a31b9322b7bba0b0baf57bb2586b1fcc7661a88a73ffe17c8134; \
;; \
*) \
echo "Architecture not supported"; \
exit 1; \
;; \
esac; \
FILE=pagefind_extended.tar.gz; \
wget -q "$URL" -O "$FILE"; \
echo "$SHA256 $FILE" | sha256sum -c -; \
tar -xvf "$FILE" --no-same-owner --no-same-permissions -- pagefind_extended; \
rm -f "$FILE"; \
mkdir -pv /usr/local/bin; \
mv -v pagefind_extended /usr/local/bin/pagefind_extended; \
chmod +x /usr/local/bin/pagefind_extended; \
pagefind_extended --version; \
:

COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x docker-entrypoint.sh

WORKDIR /
ENTRYPOINT [ "/docker-entrypoint.sh" ]
CMD [ "pagefind_extended", "--site", "/public" ]
8 changes: 8 additions & 0 deletions variants/0.4.1/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh
set -eu

if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then
set -- pagefind_extended "$@"
fi

exec "$@"
39 changes: 39 additions & 0 deletions variants/0.5.3/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
FROM alpine:3.17
# Install pagefind_extended
RUN set -eux; \
PAGEFIND_EXTENDED_VERSION=v0.5.3; \
case "$( uname -m )" in \
'x86') \
URL="https://github.com/CloudCannon/pagefind/releases/download/v0.5.3/pagefind_extended-v1.0.3-x86_64-unknown-linux-musl.tar.gz"; \
SHA256=aec60f1db9fd693986b2c3d6253f98e6710e5046a371fc1c7e3ecc5fc982a95d; \
;; \
'x86_64') \
URL="https://github.com/CloudCannon/pagefind/releases/download/v0.5.3/pagefind_extended-v1.0.3-x86_64-unknown-linux-musl.tar.gz"; \
SHA256=aec60f1db9fd693986b2c3d6253f98e6710e5046a371fc1c7e3ecc5fc982a95d; \
;; \
'aarch64') \
URL="https://github.com/CloudCannon/pagefind/releases/download/v0.5.3/pagefind_extended-v1.0.3-aarch64-unknown-linux-musl.tar.gz"; \
SHA256=575885fb7086a31b9322b7bba0b0baf57bb2586b1fcc7661a88a73ffe17c8134; \
;; \
*) \
echo "Architecture not supported"; \
exit 1; \
;; \
esac; \
FILE=pagefind_extended.tar.gz; \
wget -q "$URL" -O "$FILE"; \
echo "$SHA256 $FILE" | sha256sum -c -; \
tar -xvf "$FILE" --no-same-owner --no-same-permissions -- pagefind_extended; \
rm -f "$FILE"; \
mkdir -pv /usr/local/bin; \
mv -v pagefind_extended /usr/local/bin/pagefind_extended; \
chmod +x /usr/local/bin/pagefind_extended; \
pagefind_extended --version; \
:

COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x docker-entrypoint.sh

WORKDIR /
ENTRYPOINT [ "/docker-entrypoint.sh" ]
CMD [ "pagefind_extended", "--site", "/public" ]
8 changes: 8 additions & 0 deletions variants/0.5.3/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh
set -eu

if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then
set -- pagefind_extended "$@"
fi

exec "$@"
Loading

0 comments on commit 167cd45

Please sign in to comment.