-
Notifications
You must be signed in to change notification settings - Fork 2
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
4 changed files
with
57 additions
and
1 deletion.
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,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 | ||
|
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,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;" | ||
|
||
|
||
|
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/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"] |