diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c271ea3..275c3db 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,6 +1,7 @@ name: Main on: push: + branches: [ main ] pull_request: types: [opened, synchronize] diff --git a/.github/workflows/github-action.yaml b/.github/workflows/github-action.yaml index 7e28b94..78a8493 100644 --- a/.github/workflows/github-action.yaml +++ b/.github/workflows/github-action.yaml @@ -5,7 +5,7 @@ on: types: [opened, synchronize] jobs: - test: + test_github_action: container: node:20.9.0@sha256:62efd17e997bc843aefa4c003ed84f43dfac83fa6228c57c898482e50a02e45c runs-on: ubuntu-latest timeout-minutes: 10 diff --git a/Dockerfile b/Dockerfile index eedf64b..0ee3109 100644 --- a/Dockerfile +++ b/Dockerfile @@ -53,11 +53,13 @@ RUN true \ && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # Do not use root to run the app -USER node +# We need to use the root +# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#docker-container-filesystem +# USER node WORKDIR /app -COPY --from=tmp --chown=node:node /app/tmp /app +COPY --from=tmp /app/tmp /app EXPOSE 8080