diff --git a/.dockerignore b/.dockerignore index a395c4982..fc969ae28 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,4 +1,3 @@ -.git web/node_modules web/*.log web/regression diff --git a/.github/workflows/check-container-build.yml b/.github/workflows/check-container-build.yml index ef4096699..0d894420a 100644 --- a/.github/workflows/check-container-build.yml +++ b/.github/workflows/check-container-build.yml @@ -20,7 +20,9 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 2 - - run: git checkout HEAD^ - name: Build the container - run: docker build . + uses: docker/build-push-action@v6 + with: + push: false + context: . diff --git a/Dockerfile b/Dockerfile index ae624d569..21993fb0d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,6 +31,7 @@ RUN apk add --no-cache \ yarn \ zlib-dev +COPY .git .git # Create the /pgadmin4 directory and copy the source into it. Explicitly # remove the node_modules directory as we'll recreate a clean version, as well # as various other files we don't want @@ -60,7 +61,8 @@ RUN export CPPFLAGS="-DPNG_ARM_NEON_OPT=0" && \ webpack.* \ jest.config.js \ babel.* \ - ./pgadmin/static/js/generated/.cache + ./pgadmin/static/js/generated/.cache \ + /pgadmin4/.git ######################################################################### # Next, create the base environment for Python diff --git a/Makefile b/Makefile index f182792f7..dd55a8bd7 100644 --- a/Makefile +++ b/Makefile @@ -118,6 +118,7 @@ debian: docker: echo $(APP_NAME) + git checkout HEAD docker build --pull -t ${APP_NAME} -t $(APP_NAME):latest -t $(APP_NAME):$(APP_RELEASE) -t $(APP_NAME):$(APP_RELEASE).$(APP_REVISION) . docs: diff --git a/web/package.json b/web/package.json index b0b20a513..45d32881e 100644 --- a/web/package.json +++ b/web/package.json @@ -168,7 +168,7 @@ "bundle:watch": "yarn run linter && yarn run webpacker:watch", "bundle:dev": "yarn run linter && yarn run webpacker", "bundle:analyze": "cross-env NODE_ENV=production ANALYZE=true yarn run bundle:dev", - "bundle": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=3072 yarn run bundle:dev && git log -1 --format='%H %as' > commit_hash", + "bundle": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=3072 yarn run bundle:dev && git log -1 --format=\"%H %as\" > commit_hash", "test:js-once": "yarn run linter && yarn run jest --maxWorkers=50%", "test:js": "yarn run test:js-once --watch", "test:js-file": "yarn run test:js-once -t", @@ -181,5 +181,5 @@ "auditpy": "safety check --full-report -i 51668 -i 52495yarn npm audit", "audit-all": "yarn run auditjs && yarn run auditpy" }, - "packageManager": "yarn@3.8.2" + "packageManager": "yarn@3.8.3" } diff --git a/web/yarn.lock b/web/yarn.lock index f0c3bdf3c..d1065df69 100644 --- a/web/yarn.lock +++ b/web/yarn.lock @@ -15979,11 +15979,11 @@ __metadata: "typescript@patch:typescript@^5.4.5#~builtin": version: 5.5.2 - resolution: "typescript@patch:typescript@npm%3A5.5.2#~builtin::version=5.5.2&hash=b45daf" + resolution: "typescript@patch:typescript@npm%3A5.5.2#~builtin::version=5.5.2&hash=379a07" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 9d89bac0de650e15d6846485f238d1e65f1013f2c260d9e53e86a1da6ecf8109d9fad9402575c5c36a6592dc5d4370db090e12971c8630ae84453654baabb6b4 + checksum: d8c8af1adb92ef36998cc9293ad8607dda68564ecc2f315a7298d6d40edae1906e0ed88e0b2b02da686adc61d638cbecb82b4c694d5bccc621b8baf6e6274f7c languageName: node linkType: hard