-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Pin base image digest - Replace wget by curl - Publish new image on each push to `main` branch - Remove release workflow - Update README
- Loading branch information
Showing
6 changed files
with
17 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,17 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ | ||
"config:recommended", | ||
":disableDependencyDashboard" | ||
], | ||
"extends": ["config:recommended", ":disableDependencyDashboard"], | ||
"automerge": true, | ||
"automergeStrategy": "squash", | ||
"enabledManagers": [ | ||
"dockerfile", | ||
"github-actions", | ||
"custom.regex" | ||
], | ||
"enabledManagers": ["custom.regex", "dockerfile", "github-actions"], | ||
"customManagers": [ | ||
{ | ||
"customType": "regex", | ||
"description": "Update sqlcmd version", | ||
"description": ["Update sqlcmd version"], | ||
"datasourceTemplate": "github-releases", | ||
"depNameTemplate": "microsoft/go-sqlcmd", | ||
"fileMatch": [ | ||
"^Dockerfile$", | ||
"^version$" | ||
], | ||
"matchStrings": [ | ||
"(?:ARG )?SQLCMD_VERSION=(?<currentValue>.+?)\\s" | ||
] | ||
"fileMatch": ["^Dockerfile$"], | ||
"matchStrings": ["ARG SQLCMD_VERSION=(?<currentValue>.+?)\\s"] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
FROM --platform=${BUILDPLATFORM} alpine:3 AS tools | ||
ARG SQLCMD_VERSION=v1.8.0 | ||
ARG TARGETARCH | ||
RUN apk add jq --no-cache && \ | ||
wget -c -O - $(wget -q -O - https://api.github.com/repos/microsoft/go-sqlcmd/releases/tags/${SQLCMD_VERSION} \ | ||
| jq -r --arg arch "${TARGETARCH}" '.assets[] | select(.name | test(".*linux.*" + $arch + ".*")).browser_download_url' ) \ | ||
RUN apk add --update-cache --no-cache curl jq xz && \ | ||
curl -sSL $(curl -sSL "https://api.github.com/repos/microsoft/go-sqlcmd/releases/tags/${SQLCMD_VERSION}" | \ | ||
jq -r --arg arch "${TARGETARCH}" '.assets[] | select(.name | test(".*linux.*" + $arch + ".*")).browser_download_url') \ | ||
| tar -xj | ||
|
||
FROM gcr.io/distroless/static:nonroot | ||
FROM gcr.io/distroless/static:nonroot@sha256:3a03fc0826340c7deb82d4755ca391bef5adcedb8892e58412e1a6008199fa91 | ||
COPY --from=tools /sqlcmd /sqlcmd | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/sqlcmd"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters