diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index eafd7c1..7a655a4 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -18,7 +18,7 @@ jobs: go-version: "1.23" - name: Build - run: go build -v . + run: go build -v ./.. - name: Upload a Build Artifact uses: actions/upload-artifact@v4 diff --git a/.gitignore b/.gitignore index 2789e4c..0ad3909 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,3 @@ yarn-error.log # Build Artifacts result* catApi - -# Production Config -config.yml diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..34ee96b --- /dev/null +++ b/config.yaml @@ -0,0 +1,2 @@ +server: + port: "3000" diff --git a/example.config.yml b/example.config.yml deleted file mode 100644 index c861b6b..0000000 --- a/example.config.yml +++ /dev/null @@ -1,6 +0,0 @@ -server: - port: "3000" - -site: - title: "Cat Gallery" - header: "Cat Gallery" diff --git a/main.go b/main.go index 81b76ba..592de8f 100644 --- a/main.go +++ b/main.go @@ -18,8 +18,6 @@ import ( var images []string var logger = logrus.New() -var title string -var header string var port string // Cache for image list, it should expire every 10 minutes @@ -37,7 +35,7 @@ var tmpl = template.Must(template.New("index").Parse(`
-