-
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.
- Loading branch information
Showing
7 changed files
with
66 additions
and
18 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
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 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,13 +1,14 @@ | ||
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine as builder | ||
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-alpine as builder | ||
ARG TARGETARCH | ||
RUN addgroup -g 1000 dotnet && adduser -G dotnet -u 1000 dotnet -D | ||
USER dotnet | ||
WORKDIR /app | ||
COPY --chown=dotnet "App/App.csproj" "App/" | ||
RUN dotnet restore "App/App.csproj" | ||
RUN dotnet restore -a $TARGETARCH "App/App.csproj" | ||
COPY --chown=dotnet . . | ||
WORKDIR /app | ||
RUN dotnet tool install --global dotnet-ef | ||
RUN dotnet tool install -a $TARGETARCH --global dotnet-ef | ||
ENV PATH="$PATH:/home/dotnet/.dotnet/tools" | ||
ENV LANDSCAPE=lapras | ||
RUN dotnet-ef migrations bundle --project ./App | ||
RUN dotnet-ef migrations bundle -a $TARGETARCH --project ./App | ||
CMD [ "./efbundle" ] |
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 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 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 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
version: "3" | ||
|
||
tasks: | ||
latest-helm: | ||
internal: true | ||
silent: true | ||
desc: Get the latest version of a Helm Chart | ||
cmds: | ||
- helm repo add {{.REPO_NAME}} {{.REPO_URL}} > /dev/null | ||
- helm repo update > /dev/null | ||
- >- | ||
echo "{{.CHART_NAME}}: | ||
$(helm search repo {{.REPO_NAME}}/{{.CHART_NAME}} --versions --max-col-width=0 | ||
| grep {{.REPO_NAME}}/{{.CHART_NAME}} | ||
| head -n 1 | ||
| awk '{print $2}')" | ||
latest-oci: | ||
internal: true | ||
silent: true | ||
desc: Get the latest version of a Helm Chart in OCI version | ||
cmds: | ||
- >- | ||
echo "{{.NAME}}: $(skopeo list-tags docker://{{.OCI}} | jq -r '.Tags[]' | sort -V | tail -n 1)" |