File tree Expand file tree Collapse file tree 5 files changed +57
-1
lines changed Expand file tree Collapse file tree 5 files changed +57
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : docker-image
2
+
3
+ on :
4
+ push :
5
+ branches : [main]
6
+ workflow_call :
7
+
8
+ jobs :
9
+ docker-image :
10
+ runs-on : ubuntu-22.04
11
+ steps :
12
+ - name : Checkout
13
+ uses : actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
14
+ with :
15
+ fetch-depth : 0
16
+
17
+ - name : Set up QEMU
18
+ uses : docker/setup-qemu-action@e81a89b1732b9c48d79cd809d8d81d79c4647a18 # v2.1.0
19
+
20
+ - name : Set up Docker Buildx
21
+ id : Buildx
22
+ uses : docker/setup-buildx-action@8c0edbc76e98fa90f69d9a2c020dcb50019dc325 # v2.2.1
23
+
24
+ - name : Login to Docker Hub
25
+ uses : docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # v2.1.0
26
+ with :
27
+ username : ${{ secrets.DOCKERHUB_USER }}
28
+ password : ${{ secrets.DOCKERHUB_SECRET }}
29
+
30
+ - name : Docker Meta
31
+ id : meta_falcoctl
32
+ uses : docker/metadata-action@57396166ad8aefe6098280995947635806a0e6ea # v4.1.1
33
+ with :
34
+ # list of Docker images to use as base name for tags
35
+ images : |
36
+ docker.io/falcosecurity/falcoctl
37
+ tags : |
38
+ type=ref,event=branch
39
+ type=semver,pattern={{ version }}
40
+
41
+ - name : Build and push
42
+ uses : docker/build-push-action@c56af957549030174b10d6867f20e78cfd7debc5 # v3.2.0
43
+ with :
44
+ context : .
45
+ platforms : linux/amd64,linux/arm64
46
+ push : true
47
+ tags : ${{ steps.meta_falcoctl.outputs.tags }}
48
+ file : ./build/Dockerfile
Original file line number Diff line number Diff line change 34
34
args : release --rm-dist
35
35
env :
36
36
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
37
+ docker-image :
38
+ uses : ./.github/workflows/docker-image.yaml
39
+ secrets : inherit
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ snapshot:
40
40
release :
41
41
github :
42
42
prerelease : auto
43
+ mode : replace
43
44
44
45
changelog :
45
46
use : github
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ GOBIN=$(shell go env GOBIN)
7
7
endif
8
8
9
9
GO ?= go
10
+ DOCKER ?= docker
10
11
11
12
# version settings
12
13
RELEASE? =$(shell git rev-parse --short HEAD)
68
69
# "--new-from-rev REV Show only new issues created after git revision REV"
69
70
lint : golangci-lint
70
71
$(GOLANGCILINT ) run --new-from-rev main
72
+
73
+ docker :
74
+ $(DOCKER ) build -f ./build/Dockerfile .
Original file line number Diff line number Diff line change @@ -19,4 +19,4 @@ ARG BIN_NAME="falcoctl"
19
19
COPY --from=builder /tmp/builder/${BIN_NAME} /usr/bin/${BIN_NAME}
20
20
RUN ln -s /usr/bin/${BIN_NAME} /usr/bin/falcoctl-bin
21
21
22
- ENTRYPOINT [ "/usr/bin/falcoctl-bin" ]
22
+ ENTRYPOINT [ "/usr/bin/falcoctl-bin" ]
You can’t perform that action at this time.
0 commit comments