-
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
8 changed files
with
104 additions
and
40 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
workflow_dispatch: | ||
|
||
env: | ||
FRAMEWORK: net8.0 | ||
CONFIGURATION: Debug | ||
DOTNET_CLI_TELEMETRY_OPTOUT: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run tests | ||
run: dotnet test --configuration $CONFIGURATION Estimmo.Test/Estimmo.Test.csproj |
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,53 @@ | ||
name: Build and Push | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
|
||
env: | ||
FRAMEWORK: net8.0 | ||
RUNTIME: linux-x64 | ||
CONFIGURATION: Release | ||
DOTNET_CLI_TELEMETRY_OPTOUT: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run tests | ||
run: dotnet test --configuration $CONFIGURATION Estimmo.Test/Estimmo.Test.csproj | ||
|
||
- name: Publish | ||
run: dotnet publish -r:$RUNTIME -f:$FRAMEWORK -c:$CONFIGURATION Estimmo.sln | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Build and push PostGIS image | ||
uses: docker/build-push-action@v5 | ||
with: | ||
push: true | ||
context: docker/postgis | ||
file: docker/postgis/Dockerfile | ||
tags: ghcr.io/jamie-mh/estimmo-postgis:latest | ||
|
||
- name: Build and push API image | ||
uses: docker/build-push-action@v5 | ||
with: | ||
push: true | ||
context: . | ||
file: docker/api/Dockerfile | ||
tags: ghcr.io/jamie-mh/estimmo-api:latest |
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,12 @@ | ||
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine | ||
LABEL org.opencontainers.image.source=https://github.com/jamie-mh/hardwaredb_asp | ||
|
||
RUN apk --no-cache add curl | ||
|
||
WORKDIR /app | ||
COPY hardwareDB/bin/Release/net8.0/linux-x64/publish /app | ||
|
||
ENV PORT 8080 | ||
EXPOSE 8080 | ||
|
||
ENTRYPOINT ["dotnet", "/app/hardwareDB.dll"] |
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.
File renamed without changes.
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,12 @@ | ||
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine | ||
LABEL org.opencontainers.image.source=https://github.com/jamie-mh/estimmo-api | ||
|
||
RUN apk --no-cache add curl | ||
|
||
WORKDIR /app | ||
COPY Estimmo.Api/bin/Release/net8.0/linux-x64/publish /app | ||
|
||
ENV PORT 8080 | ||
EXPOSE 8080 | ||
|
||
ENTRYPOINT ["dotnet", "/app/Estimmo.Api.dll"] |
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,2 +1,4 @@ | ||
FROM postgis/postgis:16-3.4 | ||
RUN apt-get update && apt-get install -y postgresql-16-tdigest | ||
LABEL org.opencontainers.image.source=https://github.com/jamie-mh/estimmo-api | ||
|
||
RUN apt-get update && apt-get install -y postgresql-16-tdigest |