File tree Expand file tree Collapse file tree 3 files changed +33
-6
lines changed
Expand file tree Collapse file tree 3 files changed +33
-6
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,23 @@ updates:
44 directory : " /"
55 schedule :
66 interval : " weekly"
7+ groups :
8+ all-github-actions :
9+ patterns : [ "*" ]
710
811 - package-ecosystem : " docker"
912 directory : " /"
1013 schedule :
1114 interval : " weekly"
15+ groups :
16+ all-docker-versions :
17+ patterns : [ "*" ]
1218
1319 - package-ecosystem : " gomod"
1420 directory : " /"
1521 schedule :
1622 interval : " weekly"
23+ groups :
24+ all-go-mod-patch-and-minor :
25+ patterns : [ "*" ]
26+ update-types : [ "patch", "minor" ]
Original file line number Diff line number Diff line change 2525 check-latest : true
2626
2727 - name : Run Golangci lint
28- uses : golangci/golangci-lint-action@v4
28+ uses : golangci/golangci-lint-action@v6
2929 with :
3030 version : latest
3131 args : --print-resources-usage
4242 suffix : " "
4343 latest : " auto"
4444
45+ - Dockerfile : Dockerfile
46+ target : " final-azcli"
47+ suffix : " -azcli"
48+ latest : false
49+
4550 runs-on : ubuntu-latest
4651 steps :
4752 - uses : actions/checkout@v4
6166 id : docker_meta
6267 uses : docker/metadata-action@v5
6368 with :
64- images : ${{ github.repository }},quay.io/${{ github.repository }}
69+ images : |
70+ ${{ github.repository }}
71+ quay.io/${{ github.repository }}
6572 labels : |
6673 io.artifacthub.package.readme-url=https://raw.githubusercontent.com/${{ github.repository }}/${{ github.event.repository.default_branch }}/README.md
6774 flavor : |
9097 password : ${{ secrets.QUAY_TOKEN }}
9198
9299 - name : ${{ inputs.publish && 'Build and push' || 'Build' }}
93- uses : docker/build-push-action@v5
100+ uses : docker/build-push-action@v6
94101 with :
95102 context : .
96103 file : ./${{ matrix.Dockerfile }}
Original file line number Diff line number Diff line change 11# ############################################
22# Build
33# ############################################
4- FROM --platform=$BUILDPLATFORM golang:1.22 -alpine as build
4+ FROM --platform=$BUILDPLATFORM golang:1.23 -alpine AS build
55
66RUN apk upgrade --no-cache --force
77RUN apk add --update build-base make git
@@ -21,16 +21,26 @@ RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} make build
2121# ############################################
2222# Test
2323# ############################################
24- FROM gcr.io/distroless/static as test
24+ FROM gcr.io/distroless/static AS test
2525USER 0:0
2626WORKDIR /app
2727COPY --from=build /go/src/github.com/webdevops/azure-janitor/azure-janitor .
2828RUN ["./azure-janitor" , "--help" ]
2929
30+ # ############################################
31+ # final-azcli
32+ # ############################################
33+ FROM mcr.microsoft.com/azure-cli AS final-azcli
34+ ENV LOG_JSON=1
35+ WORKDIR /
36+ COPY --from=test /app .
37+ USER 1000:1000
38+ ENTRYPOINT ["/azure-auditor" ]
39+
3040# ############################################
3141# static-final
3242# ############################################
33- FROM gcr.io/distroless/static as final-static
43+ FROM gcr.io/distroless/static AS final-static
3444ENV LOG_JSON=1
3545WORKDIR /
3646COPY --from=test /app .
You can’t perform that action at this time.
0 commit comments