Skip to content

Commit 2f93d1d

Browse files
authored
chore: remove redundant log output (#36)
1 parent 52ce27d commit 2f93d1d

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
lines changed

.github/workflows/release.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
env:
99
REGISTRY: ghcr.io
10+
REGISTRY_DOCKERHUB: docker.io
1011
IMAGE_NAME: ${{ github.repository }}
1112

1213
jobs:
@@ -58,3 +59,33 @@ jobs:
5859
labels: ${{ steps.meta.outputs.labels }}
5960
cache-from: type=gha
6061
cache-to: type=gha,mode=max
62+
63+
image-dockerhub:
64+
runs-on: ubuntu-20.04
65+
steps:
66+
- name: Checkout
67+
uses: actions/[email protected]
68+
- name: Setup Docker buildx
69+
uses: docker/setup-buildx-action@79abd3f86f79a9d68a23c75a09a9a85889262adf
70+
- name: Log into registry ${{ env.REGISTRY_DOCKERHUB }}
71+
if: github.event_name != 'pull_request'
72+
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
73+
with:
74+
registry: ${{ env.REGISTRY_DOCKERHUB }}
75+
username: ${{ github.actor }}
76+
password: ${{ secrets.DOCKER_HUB_PUBLISH_SECRETS }}
77+
- name: Extract Docker metadata
78+
id: meta
79+
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
80+
with:
81+
images: ${{ env.REGISTRY_DOCKERHUB }}/${{ env.IMAGE_NAME }}
82+
- name: Build and push Docker image
83+
id: build-and-push
84+
uses: docker/build-push-action@ac9327eae2b366085ac7f6a2d02df8aa8ead720a
85+
with:
86+
context: .
87+
push: ${{ github.event_name != 'pull_request' }}
88+
tags: ${{ steps.meta.outputs.tags }}
89+
labels: ${{ steps.meta.outputs.labels }}
90+
cache-from: type=gha
91+
cache-to: type=gha,mode=max

pkg/runner/simple.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ func (r *simpleTestCaseRunner) RunTestCase(testcase *testing.TestCase, dataConte
256256
return
257257
}
258258
if err = expectInt(testcase.Name, testcase.Expect.StatusCode, resp.StatusCode); err != nil {
259-
err = fmt.Errorf("error is: %v\n%s", err, string(responseBodyData))
259+
err = fmt.Errorf("error is: %v", err)
260260
return
261261
}
262262

pkg/server/remote_server.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ func (s *server) Run(ctx context.Context, task *TestTask) (reply *HelloReply, er
4646
for key, val := range oldEnv {
4747
os.Setenv(key, val)
4848
}
49-
fmt.Println(reply, err)
5049
}()
5150

5251
switch task.Kind {

0 commit comments

Comments
 (0)