diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 94d0639..2c27a79 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,9 +21,9 @@ jobs: steps: # Install deps and cache - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install node ${{ matrix.node-version }} - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} registry-url: https://registry.npmjs.org diff --git a/CHANGELOG.md b/CHANGELOG.md index fa52306..e153c3f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## v0.10.0 - [November 17, 2023](https://github.com/lando/varnish/releases/tag/v0.10.0) +* Created a varnish-nginx service to use for SSL. + +## v0.9.1 - [November 16, 2023](https://github.com/lando/varnish/releases/tag/v0.9.1) +* Updated release github workflow. + ## v0.9.0 - [November 15, 2023](https://github.com/lando/varnish/releases/tag/v0.9.0) * Moved builder file to the new builders/ directory. * Isolated testing to fit with HARDCORE strategy. diff --git a/builders/varnish-nginx.js b/builders/varnish-nginx.js new file mode 100644 index 0000000..67721d4 --- /dev/null +++ b/builders/varnish-nginx.js @@ -0,0 +1,15 @@ +'use strict'; + +const _ = require('lodash'); +const landoNginx = require('./../../node_modules/@lando/nginx/builders/nginx.js'); + +// Builder +module.exports = { + name: 'varnish-nginx', + parent: 'nginx', + builder: (parent, config) => class VarnishNginx extends landoNginx(parent, config) { + constructor(id, options = {}) { + super(id, options, {services: _.set({}, options.name)}); + }; + }, +}; diff --git a/builders/varnish.js b/builders/varnish.js index b939903..af95acc 100644 --- a/builders/varnish.js +++ b/builders/varnish.js @@ -115,7 +115,7 @@ module.exports = { // Set the opts for this custom swill const sslOpts = _.assign(_.cloneDeep(options), { name: `${options.name}_ssl`, - type: 'nginx', + type: 'varnish-nginx', version: 'custom', config: `${options.confDest}/${options.defaultFiles.ssl}`, info: {backend: 'edge', managed: true},