Skip to content

Commit

Permalink
bryce added telemetry stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
brycecoon committed Feb 16, 2024
1 parent 39327b0 commit 5d3bc75
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/brycerunner.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: bryce Deploy Thingy
on: [push]
jobs:
DeployingPipeline:
runs-on: brycelabel
steps:
- name: clean up
run:

- name: clone project
run: git clone origin main

- name: move into staging folder
run: cd ./ticketsrus-aaron-bryce-carlos/BryceDocker

- name: run the build command
run: docker-compose up --build

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_CORE_VERSION }}
dotnet-version: 8.0.2
- name: Restore
run: dotnet restore "${{ env.WORKING_DIRECTORY }}"
- name: Build
Expand Down
18 changes: 18 additions & 0 deletions BryceDocker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: "3"
services:
brycecooldb:
image: postgres
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
volumes:
- ../TestTicket/20240215.01.21.01.sql:/docker-entrypoint-initdb.d/a.sql
bryceblazorapp:
build: ..
ports:
- 8085:8080
environment:
- "Postgres=Server=brycecooldb;Database=postgres;Port=5432;User id=postgres;Password=postgres;"



20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0 as build
WORKDIR /BlazorTickets

EXPOSE 8080

COPY BlazorTickets/BlazorTickets.csproj .
RUN dotnet restore

COPY . .
WORKDIR /BlazorTickets/BlazorTickets
RUN dotnet build -c Release -o /app/build

FROM build as publish
RUN dotnet publish -c Release -o /app/publish

FROM mcr.microsoft.com/dotnet/aspnet:8.0 as runtime
WORKDIR /app
COPY --from=publish /app/publish .

ENTRYPOINT ["dotnet", "BlazorTickets.dll"]

0 comments on commit 5d3bc75

Please sign in to comment.