Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: switch to prod environment in microk8s #84

Draft
wants to merge 61 commits into
base: main
Choose a base branch
from
Draft

Conversation

irony
Copy link
Collaborator

@irony irony commented Jan 31, 2022

Use our brand new cluster

@irony irony changed the title feat: switch to prod and use gh actions to build. First try feat: switch to prod environment in microk8s Feb 1, 2022
cert-manager.io/cluster-issuer: "letsencrypt-prod"
nginx.ingress.kubernetes.io/auth-type: basic
nginx.ingress.kubernetes.io/auth-secret: basic-auth
nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - foo'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

foofoo


await testQueue
.add('Test run request from sigil', {test_run_id, arguments: domain})
.waitUntilFinished() // todo: when this happens we should send a 'test running... svg'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Den här awaiten innebär inte att testet är klart dock, är det det som är tänkt?

await runOnlyOncePerDomain(domain, async () => {
console.log('Running test for domain from sigil', domain)
const parsedUrl = parseUrl(`https://${domain}`)
const {domain_id} = await connection.one(upsertDomain(parsedUrl.host))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I main är dessa två i en transaction

// makes sure we only run a function one time per domain using a semaphore in redis
async function runOnlyOncePerDomain(domain, fn, timeout = 300000) {
const key = `sigil:${domain}:test_running`
const semaphore = await redis.get(key)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

get och set kunde kombineras till ett anrop här. Det spelar väl inte så stor roll, men det går 😬

packages/web/tailwind.config.js Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants