This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"fmt" | |
"log" | |
"net/http" | |
"golang.org/x/oauth2" | |
"golang.org/x/oauth2/google" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "github.com/askcloudarchitech/medium-auto-post/cmd" | |
func main() { | |
cmd.Execute() | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package cmd | |
import ( | |
"os" | |
mediumautopost "github.com/askcloudarchitech/medium-auto-post/pkg/mediumAutoPost" | |
"github.com/spf13/cobra" | |
) | |
var dotEnvPath string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
builds: | |
- binary: mediumautopost | |
goos: | |
- darwin | |
- linux | |
goarch: | |
- amd64 | |
- arm64 | |
env: | |
- CGO_ENABLED=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: goreleaser | |
on: | |
push: | |
tags: | |
- "*" | |
permissions: | |
contents: write |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"encoding/json" | |
"fmt" | |
"github.com/askcloudarchitech/mediumautopost/pkg/mediumautopost" | |
"github.com/aws/aws-lambda-go/events" | |
"github.com/aws/aws-lambda-go/lambda" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"payload": { | |
"id": "REDACTED", | |
"site_id": "REDACTED", | |
"build_id": "REDACTED", | |
"state": "ready", | |
"name": "REDACTED", | |
"url": "REDACTED", | |
"ssl_url": "REDACTED", | |
"admin_url": "REDACTED", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -o errexit | |
up() | |
{ | |
if ! docker ps > /dev/null 2>&1; | |
then | |
echo You need to install docker before running this tool | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
home-assistant: | |
env: | |
# -- Set the container timezone | |
TZ: "America/New York" | |
hostNetwork: true | |
ingress: | |
main: | |
enabled: true | |
annotations: | |
nginx.org/websocket-services: home-assistant |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# IMPORTANT NOTE | |
# | |
# This chart inherits from our common library chart. You can check the default values/options here: | |
# https://github.com/bjw-s/helm-charts/blob/main/charts/library/common/values.yaml | |
# | |
image: | |
# -- image repository | |
repository: ghcr.io/esphome/esphome |