diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml index 1b005a165..6cf08b06a 100644 --- a/.github/workflows/pull_request.yaml +++ b/.github/workflows/pull_request.yaml @@ -5,6 +5,7 @@ on: branches: - master - 'v**' + - release-v1.4.5 paths: - '**' - '!.markdownlint.yaml' @@ -35,6 +36,7 @@ jobs: permissions: contents: read + packages: write # to push artifacts to `ghcr.io` runs-on: ubuntu-latest name: Build @@ -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: @@ -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 @@ -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 diff --git a/main.go b/main.go index 1c429710c..8e5a7fbc6 100644 --- a/main.go +++ b/main.go @@ -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) }