From 4f6d03adda468e474dc6f6628968123a30f4495f Mon Sep 17 00:00:00 2001 From: Vitor Hideyoshi Date: Sat, 1 Nov 2025 13:20:32 -0300 Subject: [PATCH] hotfix: fixes broken build --- .github/workflows/deploy.yml | 4 ++-- Dockerfile | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f2cfe60..0732495 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -82,8 +82,8 @@ jobs: deploy: needs: [docker] runs-on: ubuntu-latest - environment: - name: ${{ github.ref_name == 'main' && 'production' || 'development' }} + if: github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/main') + environment: 'production' steps: - uses: actions/checkout@v4 diff --git a/Dockerfile b/Dockerfile index b12684f..3e85132 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,16 +13,16 @@ FROM base AS prod WORKDIR /app +RUN apk add --update gettext python3 py3-pip py3-setuptools make g++ && \ + rm -rf /var/cache/apk/* + + COPY --from=build /app/node_modules ./node_modules COPY . . RUN npm install -g @angular/cli@20.3.8 - -RUN apk add --update gettext python3 py3-pip py3-setuptools make g++ && \ - rm -rf /var/cache/apk/* - RUN npm run build:prod EXPOSE 5000-7000