From 74f63c3950dfb504a3bf7b5197f4f8f53c9757ba Mon Sep 17 00:00:00 2001 From: sarayourfriend Date: Tue, 30 Apr 2024 11:22:31 +1000 Subject: [PATCH] Add script for pushing to nuxt-preview frontend tag --- frontend/justfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/justfile b/frontend/justfile index d70e5960970..b239e3937f7 100644 --- a/frontend/justfile +++ b/frontend/justfile @@ -49,6 +49,13 @@ run-img tag="openverse-frontend:local": --publish 8443:8443 \ {{ tag }} +# Build and push frontend images to `nuxt-preview` tag. Part of temporary utilities for Nuxt 3 iteration. You must `docker login ghcr.io` beforehand. +push-to-nuxt-preview github_username: + just build-img ghcr.io/wordpress/openverse-frontend:nuxt-preview + docker build -t ghcr.io/wordpress/openverse-frontend_nginx:nuxt-preview -f ./Dockerfile.nginx . + docker push ghcr.io/wordpress/openverse-frontend:nuxt-preview + docker push ghcr.io/wordpress/openverse-frontend_nginx:nuxt-preview + ###### # Up # ######