th: cache busting? not on our watch
ci/woodpecker/push/woodpecker Pipeline was successful Details

pull/59/head
kouhai dev 2023-04-24 02:22:10 -07:00
parent fdd48f3b43
commit acf635ffe8
2 changed files with 7 additions and 3 deletions

View File

@ -1,11 +1,13 @@
variables:
environment: &docker-environment
NAME: gitea.treehouse.systems/treehouse/mastodon
DATE_COMMAND: export COMMIT_DATE=$(date -u -Idate -d @$(git show -s --format=%ct))
docker-step: &docker-step
image: docker:rc-git
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
NAME: gitea.treehouse.systems/treehouse/mastodon
DATE_COMMAND: export COMMIT_DATE=$(date -u -Idate -d @$(git show -s --format=%ct))
<<: *docker-environment
clone:
git:
@ -53,10 +55,12 @@ pipeline:
<<: *docker-step
commands:
- echo $REGISTRY_SECRET | docker login -u $REGISTRY_USER --password-stdin gitea.treehouse.systems
- cat tags.txt | xargs -n 1 -I% echo docker image push $NAME:%
- cat tags.txt | xargs -n 1 -I% docker image push $NAME:%
when:
event: [push, tag]
branch: main
secrets: [REGISTRY_SECRET]
environment:
<<: *docker-environment
REGISTRY_USER: ariadne

View File

@ -64,7 +64,6 @@ RUN mv ./emoji_data/all.json ./node_modules/emoji-mart/data/all.json && \
FROM node:${NODE_VERSION}
ARG SOURCE_TAG=''
ARG UID="991"
ARG GID="991"
@ -104,6 +103,7 @@ RUN apt-get update && \
COPY --link --chown=mastodon:mastodon --from=build /opt/mastodon /opt/mastodon
ARG SOURCE_TAG=''
ENV RAILS_ENV="production" \
NODE_ENV="production" \
RAILS_SERVE_STATIC_FILES="true" \