Skip to content

Commit

Permalink
bump version to 1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ychab committed Dec 19, 2023
1 parent 13cf231 commit 66d3ecc
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 10 deletions.
1 change: 1 addition & 0 deletions deploy/deploy.conf.sh.DIST
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ FOLIOBLOG_GID=
# FOLIOBLOG_REDIS_LOCATION=redis://redis:6379

# Prod
FOLIOBLOG_RELEASE=
FOLIOBLOG_SECRET_KEY=
FOLIOBLOG_ADMIN_PASSWD=
FOLIOBLOG_EMAIL_HOST_PASSWORD=
2 changes: 1 addition & 1 deletion deploy/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ deploy_prod() {
sed -i 's,^# FOLIOBLOG_SECRET_KEY=.*,FOLIOBLOG_SECRET_KEY='"${FOLIOBLOG_SECRET_KEY:-bla-bla-bla}"',g' .env
sed -i 's,^# FOLIOBLOG_ADMIN_PASSWD=.*,FOLIOBLOG_ADMIN_PASSWD='"${FOLIOBLOG_ADMIN_PASSWD:-admin}"',g' .env
sed -i 's,^# FOLIOBLOG_EMAIL_HOST_PASSWORD=.*,FOLIOBLOG_EMAIL_HOST_PASSWORD='"${FOLIOBLOG_EMAIL_HOST_PASSWORD:-}"',g' .env
sed -i 's,^# FOLIOBLOG_VERSION=.*,FOLIOBLOG_VERSION='"$FOLIOBLOG_VERSION"',g' .env
sed -i 's,^# FOLIOBLOG_RELEASE=.*,FOLIOBLOG_RELEASE='"${FOLIOBLOG_RELEASE:-v1.7.0}"',g' .env
sed -i 's,^# FOLIOBLOG_STATIC_ROOT=.*,FOLIOBLOG_STATIC_ROOT=/app/static,g' .env
sed -i 's,^# FOLIOBLOG_NGINX_HOST=.*,FOLIOBLOG_NGINX_HOST=folio.local blog.folio.local demo.folio.local,g' .env
sed -i 's,^# FOLIOBLOG_NGINX_MEDIA_ROOT=.*,FOLIOBLOG_NGINX_MEDIA_ROOT=/media,g' .env
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ services:
context: .
dockerfile: ./docker/prod/Dockerfile
args:
FOLIOBLOG_VERSION: ${FOLIOBLOG_VERSION:-main}
FOLIOBLOG_RELEASE: ${FOLIOBLOG_RELEASE:-v1.7.0}
NODE_VERSION: ${FOLIOBLOG_NODE_VERSION:-v20.10.0}
MEDIA_ROOT: ${FOLIOBLOG_MEDIA_ROOT}
STATIC_ROOT: ${FOLIOBLOG_STATIC_ROOT}
Expand Down
12 changes: 7 additions & 5 deletions docker/prod/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Use the default Python image to have more reposities availables.
FROM python:3.10-slim

ARG FOLIOBLOG_VERSION
ARG FOLIOBLOG_RELEASE
ARG NODE_VERSION
ARG MEDIA_ROOT
ARG STATIC_ROOT
Expand All @@ -23,8 +23,7 @@ RUN apt update --yes --quiet && apt install --yes --quiet --no-install-recommend
wget \
curl \
tar \
xz-utils \
git
xz-utils

# Then install nodeJS with NPM.
RUN wget -O /opt/node.tar.xz https://nodejs.org/dist/${NODE_VERSION}/node-${NODE_VERSION}-linux-x64.tar.xz
Expand All @@ -35,9 +34,12 @@ RUN rm /opt/node.tar.xz
# Create an app user.
RUN useradd --create-home --shell /bin/bash appuser

# Fetch source code. For now, using GIT but later, better to download release tarball.
RUN git clone --depth=1 --branch=${FOLIOBLOG_VERSION} https://github.com/ychab/wagtail_folioblog.git /app
# Fetch source code from GitHub archives.
RUN mkdir /app
RUN wget -O /app/folioblog.tar.gz https://github.com/ychab/wagtail_folioblog/archive/refs/tags/${FOLIOBLOG_RELEASE}.tar.gz
RUN tar xzf /app/folioblog.tar.gz -C /app/ --no-same-owner --strip-components=1
RUN chown -R appuser:appuser /app
RUN rm /app/folioblog.tar.gz

# Create virtualenv and install backend dependencies with gunicorn.
RUN python -m venv ${VIRTUAL_ENV}
Expand Down
2 changes: 1 addition & 1 deletion env/.env.LOCAL
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ FOLIOBLOG_REDIS_PASSWORD=redis
# PRODUCTION
############

# FOLIOBLOG_VERSION=main
# FOLIOBLOG_RELEASE=v1.7.0
# FOLIOBLOG_STATIC_ROOT=/app/static

# FOLIOBLOG_NGINX_HOST=folio.local blog.folio.local demo.folio.local
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "folioblog",
"version": "1.5.0",
"version": "1.7.0",
"author": "Yannick Chabbert",
"dependencies": {
"@fortawesome/fontawesome-free": "^6.4.2",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "folioblog"
version = "1.5.0"
version = "1.7.0"
description = "A PortFolio/Blog website build with the CMS Wagtail"
authors = ["Yannick Chabbert <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 66d3ecc

Please sign in to comment.