Skip to content

Instantly share code, notes, and snippets.

View gmlewis's full-sized avatar

Glenn Lewis gmlewis

  • Orlando, FL
View GitHub Profile
@gmlewis
gmlewis / on-push-to-develop.yml
Created February 3, 2023 00:49
Work in progress - GitHub Action - pushing image to Azure Container Registry using Dagger.io
name: On push to develop
on:
push:
paths:
- '.env.test'
- '.**.js'
- '**.js'
- '**.json'
- '**.lock'
- 'public/**'
@gmlewis
gmlewis / build.go
Created February 3, 2023 00:58
Work in progress - build step using Dagger.io
package common
import (
"context"
"fmt"
"log"
"path/filepath"
"runtime"
"dagger.io/dagger"
@gmlewis
gmlewis / on-push-to-develop.yml
Created February 11, 2023 01:21
Work in progress - Dagger Go Workflow to deploy to Azure dev cluster
name: On push to develop
on:
push:
paths:
- '.env.test'
- '.**.js'
- '**.js'
- '**.json'
- '**.lock'
- 'public/**'
@gmlewis
gmlewis / helm-upgrade.go
Created February 11, 2023 01:23
Work in progress - perform "helm upgrade" to deploy chart to Azure dev cluster
package common
import (
"context"
"fmt"
"log"
"os"
"strings"
"dagger.io/dagger"
@gmlewis
gmlewis / azure.go
Created March 10, 2023 18:37
Work-in-progress building container and publishing to Azure
package common
import (
"context"
"log"
"dagger.io/dagger"
)
// PublishToAzure performs a Dockerfile build on the provided repo and pushes to the
@gmlewis
gmlewis / server.go
Last active June 19, 2023 16:03
Mechanism to perform OAuth2 dance (e.g. with Keycloak) in a wails production build
// Copyright (C) 2023 Omics Data Automation, Inc. - All Rights Reserved
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.