diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index a1ba962..0a9f0af 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -4,7 +4,7 @@ jobs: test: strategy: matrix: - go-version: [1.16.x] + go-version: [1.17.x] platform: [ubuntu-latest] runs-on: ${{ matrix.platform }} steps: @@ -53,7 +53,7 @@ jobs: - name: Install Go uses: actions/setup-go@v2 with: - go-version: '1.16.x' + go-version: '1.17.x' - name: Checkout uses: actions/checkout@master - name: Set up image tag diff --git a/Dockerfile b/Dockerfile index 1d765a7..9992705 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ COPY . . RUN CGO_ENABLED=0 go build -ldflags="-w -s" -o agent_sd github.com/netdata/sd/cmd/sd -FROM alpine:3.12.0 +FROM alpine:3.14.2 COPY --from=builder /app/agent_sd /app/ diff --git a/pipeline/export/manager_test.go b/pipeline/export/manager_test.go index af30c0a..0c4fa93 100644 --- a/pipeline/export/manager_test.go +++ b/pipeline/export/manager_test.go @@ -24,7 +24,7 @@ func TestManager_Export(t *testing.T) { wg.Add(1) go func() { - wg.Done() + defer wg.Done() mgr.Export(ctx, out) }()