pidgin/nest

837d728b48d1
Make asset busting depend on deployment environment

At the moment CSS and JS resources have a cache busting tag at the end of their href/src to force a reload when re-rendered. This is deependant on an unused setting, and is present in prod as well, this is really only a feature for development. So, it's been a PITA when diffing outputs

Testing Done:
I've run the `hugo` and `hugo serve` commands with deployment env between prod and dev, and behaviour is as expected

Reviewed at https://reviews.imfreedom.org/r/145/
environment:
- REPO=pidgin/nest
- TAG=latest
- BUILD_NAME
- REGISTRY_USERNAME
- REGISTRY_PASSWORD
- REGISTRY=docker.io
tasks:
import:
type: docker/import
files: .:.
build:
type: docker/build
dockerfile: Dockerfile
tag: ${REGISTRY}/${REPO}:${TAG}
labels:
- BUILD_DATE=${RUN_TIME}
- COMMIT=${HG_COMMIT}
files: .:.
arguments:
- BUILD_DATE=${RUN_TIME}
- BUILD_NAME=${BUILD_NAME}
- COMMIT=${HG_COMMIT}
push:
type: docker/push
image: ${REGISTRY}/${REPO}:${TAG}
clean:
type: docker/remove
quiet: true
image: ${REGISTRY}/${REPO}:${TAG}
login:
type: docker/login
username: ${REGISTRY_USERNAME}
password: ${REGISTRY_PASSWORD}
server: ${REGISTRY}
logout:
type: docker/logout
server: ${REGISTRY}
plans:
default:
stages:
- tasks: [import, build]
publish:
stages:
- tasks: [push]
cicd:
stages:
- name: build
tasks: [import, build]
- name: publish
tasks: [login, push]
- name: cleanup
tasks: [logout, clean]
run: always
clean:
stages:
- tasks: [clean]