We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a29c43 commit 2fc4de9Copy full SHA for 2fc4de9
1 file changed
.github/workflows/docker.yml
@@ -9,11 +9,31 @@
9
10
name: Publish Docker image
11
12
-on: workflow_dispatch
+on:
13
+ push:
14
+ branches: [main]
15
16
jobs:
17
+ test:
18
+ name: Go Test
19
+ runs-on: ubuntu-latest
20
+ steps:
21
+ - uses: actions/checkout@v4
22
+
23
+ - name: Set up Go
24
+ uses: actions/setup-go@v5
25
+ with:
26
+ go-version-file: go.mod
27
28
+ - name: Build
29
+ run: go build -v ./...
30
31
+ - name: Test
32
+ uses: robherley/go-test-action@v0
33
34
push_to_registry:
35
name: Push Docker image to Docker Hub
36
+ needs: test
37
runs-on: ubuntu-latest
38
permissions:
39
packages: write
0 commit comments