diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index f6e76d68..aaed6652 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -146,7 +146,6 @@ jobs: build-deploy-dev-gubbins-image: runs-on: ubuntu-latest - if: ${{ github.event_name == 'push' && github.repository == 'DIRACGrid/diracx-web' }} steps: - uses: actions/checkout@v4 @@ -165,7 +164,7 @@ jobs: - name: Build Docker image (extension example) uses: docker/build-push-action@v6 with: - context: ./packages/extensions + file: ./packages/extensions/Dockerfile push: ${{ github.event_name == 'push' && github.repository == 'DIRACGrid/diracx-web' && github.ref_name == 'main' }} tags: ghcr.io/diracgrid/diracx-web/extension-example:dev platforms: linux/amd64,linux/arm64 diff --git a/.github/workflows/extension.yml b/.github/workflows/extension.yml index 90ca30ca..173f8f12 100644 --- a/.github/workflows/extension.yml +++ b/.github/workflows/extension.yml @@ -13,7 +13,6 @@ jobs: run-lint: runs-on: ubuntu-latest # Run the tests only if It's a PR or if the repo is DIRACGrid/diracx-web - if: github.event_name != 'push' || github.repository == 'DIRACGrid/diracx-web' steps: # Checkout the new source code - uses: actions/checkout@v4 @@ -34,7 +33,6 @@ jobs: run-demo: runs-on: ubuntu-latest # Run the tests only if It's a PR or if the repo is DIRACGrid/diracx-web - if: github.event_name != 'push' || github.repository == 'DIRACGrid/diracx-web' steps: # Checkout the new source code - uses: actions/checkout@v4 diff --git a/packages/extensions/Dockerfile b/packages/extensions/Dockerfile index cb1b361d..074fc222 100644 --- a/packages/extensions/Dockerfile +++ b/packages/extensions/Dockerfile @@ -6,6 +6,7 @@ FROM node:alpine AS build WORKDIR /app # Copy the application to the working directory COPY ../.. . +RUN ls # Install the project dependencies RUN npm ci # Build the static export with telemetry disabled (https://nextjs.org/telemetry)