diff --git a/.gitea/workflows/docker_tags.yaml b/.gitea/workflows/docker_tags.yaml index 858dbef..814877a 100644 --- a/.gitea/workflows/docker_tags.yaml +++ b/.gitea/workflows/docker_tags.yaml @@ -13,6 +13,7 @@ env: NPMCI_GIT_GITHUBTOKEN: ${{secrets.NPMCI_GIT_GITHUBTOKEN}} NPMCI_LOGIN_DOCKER_GITEA: ${{ github.server_url }}|${{ gitea.repository_owner }}|${{ secrets.GITEA_TOKEN }} NPMCI_LOGIN_DOCKER_DOCKERREGISTRY: ${{ secrets.NPMCI_LOGIN_DOCKER_DOCKERREGISTRY }} + NPMCI_SECRET01: ${{ secrets.NPMCI_SECRET01 }} jobs: security: diff --git a/changelog.md b/changelog.md index 3daa862..53ea5a1 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## 2024-11-06 - 4.3.6 - fix(test) +Enhance test helpers with dynamic Hetzner token retrieval. + +- Updated test/helpers/cloudlyfactory.ts to retrieve Hetzner token from environment variables. +- Expanded docker_tags workflow to securely handle and pass new environment secrets. + ## 2024-11-06 - 4.3.5 - fix(helpers) Add missing sslMode configuration to Cloudly config. diff --git a/test/helpers/cloudlyfactory.ts b/test/helpers/cloudlyfactory.ts index bbe2e64..d2b8f88 100644 --- a/test/helpers/cloudlyfactory.ts +++ b/test/helpers/cloudlyfactory.ts @@ -25,6 +25,13 @@ export const createCloudly = async () => { mongoDescriptor: await smartmongo.getMongoDescriptor(), s3Descriptor: await smarts3.getS3Descriptor(), sslMode: 'none', + ...(() => { + if (process.env.NPMCI_SECRET01) { + return { + hetznerToken: process.env.NPMCI_SECRET01 + } + } + })() }; const cloudlyInstance = new cloudly.Cloudly(cloudlyConfig); return cloudlyInstance; diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index d05cfd2..39e155f 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@serve.zone/cloudly', - version: '4.3.5', + version: '4.3.6', description: 'A comprehensive tool for managing containerized applications across multiple cloud providers using Docker Swarmkit, featuring web, CLI, and API interfaces.' } diff --git a/ts_web/00_commitinfo_data.ts b/ts_web/00_commitinfo_data.ts index d05cfd2..39e155f 100644 --- a/ts_web/00_commitinfo_data.ts +++ b/ts_web/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@serve.zone/cloudly', - version: '4.3.5', + version: '4.3.6', description: 'A comprehensive tool for managing containerized applications across multiple cloud providers using Docker Swarmkit, featuring web, CLI, and API interfaces.' }