From df365b972e63fee4380b617e10a5ea5ecd3f0d89 Mon Sep 17 00:00:00 2001 From: Rafael Cardenas Date: Fri, 5 Jul 2024 22:13:10 -0600 Subject: [PATCH] ci: update api ci build --- .github/workflows/ci.yml | 2 +- docker/runes-api.dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 46361f5..87cd854 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -278,4 +278,4 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} # Only push if (there's a new release on main branch, or if building a non-main branch) and (Only run on non-PR events or only PRs that aren't from forks) - push: ${{ (github.ref != 'refs/heads/master' || needs.semantic-release.outputs.new_release_version != '') && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }} + push: ${{ (github.ref != 'refs/heads/main' || needs.semantic-release.outputs.new_release_version != '') && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }} diff --git a/docker/runes-api.dockerfile b/docker/runes-api.dockerfile index 8664b9a..b0b58f8 100644 --- a/docker/runes-api.dockerfile +++ b/docker/runes-api.dockerfile @@ -2,7 +2,7 @@ FROM node:20-alpine WORKDIR /app COPY ./api /app -COPY .git /app/.git +COPY .git /.git RUN apk add --no-cache --virtual .build-deps git RUN npm ci --no-audit && \