@toptal/davinci-ci 7.4.4-alpha-fx-5435-monorepo-commands-0774222d.2 → 7.4.4

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Change Log
2
2
 
3
+ ## 7.4.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2432](https://github.com/toptal/davinci/pull/2432) [`e97dea95`](https://github.com/toptal/davinci/commit/e97dea95e34f896732a26843a64177b6ba7307b1) Thanks [@dkezele-t](https://github.com/dkezele-t)!
8
+ - rework Dockerfile
9
+
3
10
  ## 7.4.3
4
11
 
5
12
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toptal/davinci-ci",
3
- "version": "7.4.4-alpha-fx-5435-monorepo-commands-0774222d.2+0774222d",
3
+ "version": "7.4.4",
4
4
  "keywords": [
5
5
  "ci",
6
6
  "docker",
@@ -30,7 +30,7 @@
30
30
  "dependencies": {
31
31
  "@commitlint/cli": "^17.6.7",
32
32
  "@commitlint/config-conventional": "^17.1.0",
33
- "@toptal/davinci-cli-shared": "2.5.1-alpha-fx-5435-monorepo-commands-0774222d.9+0774222d",
33
+ "@toptal/davinci-cli-shared": "^2.5.0",
34
34
  "chalk": "^4.1.2",
35
35
  "danger": "^11.2.2",
36
36
  "markdown-table": "^2.0.0"
@@ -40,6 +40,5 @@
40
40
  },
41
41
  "publishConfig": {
42
42
  "access": "public"
43
- },
44
- "gitHead": "0774222ddf02b514f6737a7ce94b67ac4498b3ac"
43
+ }
45
44
  }
@@ -1,5 +1,6 @@
1
1
  # Create the image with Nginx environment.
2
- FROM nginx:alpine
2
+
3
+ FROM us-central1-docker.pkg.dev/toptal-hub/docker-registry/nginx:alpine
3
4
 
4
5
  # Copy results from the dist folder to the image.
5
6
  ARG DIST_FOLDER
@@ -1,5 +1,5 @@
1
1
  # Create the image with Nginx environment.
2
- FROM nginx:alpine
2
+ FROM us-central1-docker.pkg.dev/toptal-hub/docker-registry/nginx:alpine
3
3
 
4
4
  # Copy results from the dist folder to the image.
5
5
  ARG DIST_FOLDER
@@ -28,8 +28,8 @@ if [ -f "$ENV_FILE" ]; then
28
28
  export $(grep -v '^#' $ENV_FILE | xargs)
29
29
 
30
30
  # Override env variables with previous values
31
- eval "$OLD_ENV"
32
- else
31
+ eval "$OLD_ENV"
32
+ else
33
33
  echo "Info: $ENV_FILE does not exist"
34
34
  fi
35
35
 
@@ -62,8 +62,11 @@ if [ -n "$MISSING_VARS" ]; then
62
62
  done
63
63
  fi
64
64
 
65
- export HTML_CDN_CACHE_TAG="${HTML_CDN_CACHE_TAG:-"davinci-app"}"
66
-
67
- envsubst '${HTML_CDN_CACHE_TAG}' </etc/nginx/conf.d/default.conf.templ >/etc/nginx/conf.d/default.conf
65
+ if [ -f /etc/nginx/conf.d/default.conf.templ ]; then
66
+ export HTML_CDN_CACHE_TAG="${HTML_CDN_CACHE_TAG:-"davinci-app"}"
67
+ envsubst '${HTML_CDN_CACHE_TAG}' </etc/nginx/conf.d/default.conf.templ >/etc/nginx/conf.d/default.conf
68
+ else
69
+ echo "Info: /etc/nginx/conf.d/default.conf.templ does not exist"
70
+ fi
68
71
 
69
72
  exec "$@"