[WIP] Update deploy-azure workflow to build frontend image#5
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Copilot stopped work on behalf of
jaylson due to an error
March 18, 2026 20:23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.
Original prompt
Problema
O workflow
.github/workflows/deploy-azure.ymlatualmente só faz build e push da imagem Docker do backend, ignorando completamente o frontend.Estrutura do projeto
src/backend/Dockerfilesrc/frontend/Dockerfilecontainerppro.azurecr.io)O que precisa ser corrigido
Atualizar o arquivo
.github/workflows/deploy-azure.ymlcom as seguintes mudanças:Renomear a env
IMAGE_NAME: ppropara duas variáveis separadas:BACKEND_IMAGE: pproFRONTEND_IMAGE: ppro-frontendCorrigir o
filedo backend para./src/backend/Dockerfile(atualmente aponta para./Dockerfileque é incorreto)Adicionar um novo step "Build and push Frontend image" após o step do backend, com:
context: ./src/frontendfile: ./src/frontend/Dockerfile${{ env.REGISTRY }}/${{ env.FRONTEND_IMAGE }}:lateste${{ env.REGISTRY }}/${{ env.FRONTEND_IMAGE }}:${{ github.sha }}Atualizar o step final do job
deploypara exibir as duas imagens no echo.Resultado esperado do arquivo
The following is the prior conversation context from the user's chat exploration (may be truncated):
User: não está fazendo o build do frontend, somente do backend
Assistant: Deixa eu verificar o arquivo de workflow para entender o que está configurado atualmente.
Assistant: O workflow atual só faz build e push de uma única imagem Docker usando o
./Dockerfileda raiz do projeto. Ele não tem nenhum step dedicado ao build do frontend.Veja o problema:
Para corrigir, você precisa adicionar um step (ou job) separado para buildar o frontend. A solução depende da estrutura do seu projeto. Algumas perguntas:
frontend/com seu próprioDockerfile?ppro-frontend) ou o build do frontend é copiado para dentro da imagem do backend?Com essas informações, posso te ajudar a ajustar o workflow corretamente! 🚀
User: 1. sim, cada um tem o dockerfile
2. sim, frontend e backend são separados
3. devem ser deployados juntos
Assistant: Vou verificar o conteúdo do diretório
srce também odocker-compose.ymlpara entender melhor a estrutura do projeto.Assistant: Agora tenho tudo o que preciso! A estrutura é clara:
src/backend/Dockerfilesrc/frontend/Dockerfileppro(backend) eppro-frontend(frontend)O workflow atual só builda a imagem do backend. Preciso adicionar um segundo step para o frontend. Quer que eu abra um PR com o workflow corrigido, ou prefere que eu apenas mostre o YAML atualizado para você aplicar manualmente?
Aqui está como ficaria o workflow corrigido: