From df4ac87f48de427337b2ec611560e23a885eadae Mon Sep 17 00:00:00 2001 From: Olga Bulat Date: Tue, 30 Apr 2024 19:04:31 +0300 Subject: [PATCH] Add changes from #4227 Signed-off-by: Olga Bulat --- frontend/justfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontend/justfile b/frontend/justfile index d70e5960970..5a54dc43c8f 100644 --- a/frontend/justfile +++ b/frontend/justfile @@ -49,6 +49,14 @@ 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 + gh workflow run -R WordPress/openverse-infrastructure 'Deployment - staging-nuxt-preview' -f tag=nuxt-preview + ###### # Up # ######