Skip to content
This repository has been archived by the owner on Jan 17, 2025. It is now read-only.

Commit

Permalink
chore: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
bradenrayhorn committed Oct 29, 2024
1 parent 342bf60 commit d14ffd4
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5
with:
go-version-file: "./server/go.mod"
go-version-file: "./go.mod"
cache: false
- name: Generate backend license text
working-directory: "./server"
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,13 @@ jobs:
lint:
name: Lint Go
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./server
steps:
- name: Checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Setup go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5
with:
go-version-file: "./server/go.mod"
go-version-file: "./go.mod"
cache: false
- name: Install
run: |
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.22@sha256:829eff99a4b2abffe68f6a3847337bf6455d69d17e49ec1a97dac78834754bd6 AS buildgo
FROM golang:1.23@sha256:ad5c126b5cf501a8caef751a243bb717ec204ab1aa56dc41dc11be089fafcb4f AS buildgo

RUN mkdir /app
COPY . /app
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/bradenrayhorn/nunc

go 1.22.1
go 1.23

require (
github.com/google/go-github/v66 v66.0.0
Expand Down
10 changes: 7 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"fmt"
"log"
"log/slog"
"net/http"
"os"
Expand All @@ -14,7 +15,8 @@ func main() {

config, err := newConfig()
if err != nil {
panic(err)
log.Fatalf("load config: %s", err)
return
}

// start webhook listener
Expand All @@ -24,12 +26,14 @@ func main() {

hetzner, err := newHetzner(config.hetznerToken)
if err != nil {
panic(err)
log.Fatalf("create hetzner client: %s", err)
return
}

githubClient, err := newGithubClient(config.githubToken, config.githubRepository)
if err != nil {
panic(err)
log.Fatalf("create github client: %s", err)
return
}

state := &serverState{
Expand Down

0 comments on commit d14ffd4

Please sign in to comment.