-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #220 from TheAxelander/pre-release
Merge changes for version 1.8
- Loading branch information
Showing
360 changed files
with
128,820 additions
and
91,232 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 |
---|---|---|
|
@@ -30,6 +30,7 @@ README.md | |
|
||
# files | ||
Dockerfile* | ||
**/appsettings.Development.json* | ||
**/*.trx | ||
**/*.md | ||
**/*.ps1 | ||
|
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,59 @@ | ||
name: Docker Image (Version Tag) | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
env: | ||
DOTNET_VERSION: '8.0.100' # The .NET SDK version to use | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
name: Run Test Cases | ||
steps: | ||
- name: Check out repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup dotnet | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: ${{ env.DOTNET_VERSION }} | ||
|
||
- name: Install Blazor dependencies | ||
run: dotnet restore OpenBudgeteer.Blazor | ||
|
||
- name: Build Blazor | ||
run: dotnet build OpenBudgeteer.Blazor --configuration Release --no-restore | ||
|
||
- name: Run Core Test Cases | ||
run: dotnet test OpenBudgeteer.Core.Test | ||
deploy-docker: | ||
runs-on: ubuntu-latest | ||
name: Build and Push Docker Image | ||
needs: test | ||
if: success() | ||
steps: | ||
- name: Check out repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Docker Login | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
push: true | ||
tags: axelander/openbudgeteer:${{ github.ref_name }} | ||
platforms: linux/arm64,linux/amd64 |
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,20 @@ | ||
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine AS base | ||
WORKDIR /api | ||
ENV DOTNET_CLI_TELEMETRY_OPTOUT=1 | ||
ENV DOTNET_RUNNING_IN_CONTAINER=true | ||
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false | ||
RUN apk add --no-cache icu-libs icu-data-full | ||
|
||
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0 AS build | ||
ARG TARGETARCH | ||
ENV DOTNET_CLI_TELEMETRY_OPTOUT=1 | ||
WORKDIR /src | ||
COPY . . | ||
RUN dotnet restore -a $TARGETARCH | ||
WORKDIR "/src/OpenBudgeteer.API" | ||
RUN dotnet publish "OpenBudgeteer.API.csproj" --no-self-contained -c Release -a $TARGETARCH -o /api/publish | ||
|
||
FROM base AS final | ||
WORKDIR /api | ||
COPY --from=build /api/publish . | ||
ENTRYPOINT ["dotnet", "OpenBudgeteer.API.dll"] |
Oops, something went wrong.