fix(test): Enhance test helpers with dynamic Hetzner token retrieval.
This commit is contained in:
		@@ -13,6 +13,7 @@ env:
 | 
				
			|||||||
  NPMCI_GIT_GITHUBTOKEN: ${{secrets.NPMCI_GIT_GITHUBTOKEN}}
 | 
					  NPMCI_GIT_GITHUBTOKEN: ${{secrets.NPMCI_GIT_GITHUBTOKEN}}
 | 
				
			||||||
  NPMCI_LOGIN_DOCKER_GITEA: ${{ github.server_url }}|${{ gitea.repository_owner }}|${{ secrets.GITEA_TOKEN }}
 | 
					  NPMCI_LOGIN_DOCKER_GITEA: ${{ github.server_url }}|${{ gitea.repository_owner }}|${{ secrets.GITEA_TOKEN }}
 | 
				
			||||||
  NPMCI_LOGIN_DOCKER_DOCKERREGISTRY: ${{ secrets.NPMCI_LOGIN_DOCKER_DOCKERREGISTRY }}
 | 
					  NPMCI_LOGIN_DOCKER_DOCKERREGISTRY: ${{ secrets.NPMCI_LOGIN_DOCKER_DOCKERREGISTRY }}
 | 
				
			||||||
 | 
					  NPMCI_SECRET01: ${{ secrets.NPMCI_SECRET01 }} 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
  security:
 | 
					  security:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,11 @@
 | 
				
			|||||||
# Changelog
 | 
					# 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)
 | 
					## 2024-11-06 - 4.3.5 - fix(helpers)
 | 
				
			||||||
Add missing sslMode configuration to Cloudly config.
 | 
					Add missing sslMode configuration to Cloudly config.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -25,6 +25,13 @@ export const createCloudly = async () => {
 | 
				
			|||||||
    mongoDescriptor: await smartmongo.getMongoDescriptor(),
 | 
					    mongoDescriptor: await smartmongo.getMongoDescriptor(),
 | 
				
			||||||
    s3Descriptor: await smarts3.getS3Descriptor(),
 | 
					    s3Descriptor: await smarts3.getS3Descriptor(),
 | 
				
			||||||
    sslMode: 'none',
 | 
					    sslMode: 'none',
 | 
				
			||||||
 | 
					    ...(() => {
 | 
				
			||||||
 | 
					      if (process.env.NPMCI_SECRET01) {
 | 
				
			||||||
 | 
					        return {
 | 
				
			||||||
 | 
					          hetznerToken: process.env.NPMCI_SECRET01
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    })()
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
  const cloudlyInstance = new cloudly.Cloudly(cloudlyConfig);
 | 
					  const cloudlyInstance = new cloudly.Cloudly(cloudlyConfig);
 | 
				
			||||||
  return cloudlyInstance;
 | 
					  return cloudlyInstance;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3,6 +3,6 @@
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
export const commitinfo = {
 | 
					export const commitinfo = {
 | 
				
			||||||
  name: '@serve.zone/cloudly',
 | 
					  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.'
 | 
					  description: 'A comprehensive tool for managing containerized applications across multiple cloud providers using Docker Swarmkit, featuring web, CLI, and API interfaces.'
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3,6 +3,6 @@
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
export const commitinfo = {
 | 
					export const commitinfo = {
 | 
				
			||||||
  name: '@serve.zone/cloudly',
 | 
					  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.'
 | 
					  description: 'A comprehensive tool for managing containerized applications across multiple cloud providers using Docker Swarmkit, featuring web, CLI, and API interfaces.'
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user