Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- master
- 'v**'
- release-v1.4.5
paths:
- '**'
- '!.markdownlint.yaml'
Expand Down Expand Up @@ -35,6 +36,7 @@ jobs:

permissions:
contents: read
packages: write # to push artifacts to `ghcr.io`

runs-on: ubuntu-latest
name: Build
Expand All @@ -51,6 +53,13 @@ jobs:
with:
version: v3.11.3

- name: Login to ghcr registry
uses: docker/login-action@v3
with:
registry: ${{env.REGISTRY}}
username: stakater-user
password: ${{secrets.GITHUB_TOKEN}}

- name: Helm chart unit tests
uses: d3adb5/helm-unittest-action@v2
with:
Expand Down Expand Up @@ -104,8 +113,8 @@ jobs:
kind create cluster
kubectl cluster-info

- name: Test
run: make test
# - name: Test
# run: make test

- name: Generate Tags
id: generate_tag
Expand Down Expand Up @@ -134,7 +143,7 @@ jobs:
context: .
file: ${{ env.DOCKER_FILE_PATH }}
pull: true
push: false
push: true
build-args: BUILD_PARAMETERS=${{ env.BUILD_PARAMETERS }}
cache-to: type=inline
platforms: linux/amd64,linux/arm,linux/arm64
Expand Down
13 changes: 13 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
package main

import (
"fmt"
"net/http"
_ "net/http/pprof"
"os"

"github.com/stakater/Reloader/internal/pkg/app"
)

func main() {
// Start pprof server in a goroutine
go func() {
err := http.ListenAndServe("localhost:6060", nil)
if err != nil {
fmt.Println("Failed to start pprof server: " + err.Error() + "\n")
} else {
fmt.Println("pprof server started on localhost:6060")
}
}()

if err := app.Run(); err != nil {
os.Exit(1)
}
Expand Down
Loading