-
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.
Merge pull request #18 from SnowSE/master
Move beta.sanpetepantry.org (as in master) into Prod.
- Loading branch information
Showing
80 changed files
with
2,298 additions
and
481 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 |
---|---|---|
@@ -1,68 +1,29 @@ | ||
name: Deploy to Beta | ||
# This workflow will build a .NET project | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | ||
|
||
name: Deploy.NET | ||
|
||
on: | ||
push: | ||
branches: [ beta ] | ||
branches: [ "beta" ] | ||
pull_request: | ||
branches: [ beta ] | ||
branches: [ "beta" ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: beta | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
runs-on: self-hosted | ||
env: | ||
DOTNET_INSTALL_DIR: "/home/github/actions-runner/dotnet" | ||
|
||
- name: Get smart tag | ||
id: prepare | ||
uses: Surgo/docker-smart-tag-action@v1 | ||
with: | ||
docker_image: sanpetepantry/web | ||
tag_with_sha: true | ||
|
||
- name: Build and push | ||
id: docker_build | ||
uses: docker/build-push-action@v2 | ||
with: | ||
file: SanpetePantry/Dockerfile | ||
push: true | ||
tags: ${{ steps.prepare.outputs.tag }} | ||
build-args: | | ||
exampleArg=exampleArgValue | ||
otherArg=$GITHUB_SHA | ||
- name: Image Digest | ||
run: echo ${{ steps.docker_build.outputs.digest }} | ||
|
||
- name: SFTP uploader | ||
uses: wangyucode/[email protected] | ||
with: | ||
host: ${{ secrets.LINODE_SERVER }} | ||
username: ${{ secrets.LINODE_USER }} | ||
password: ${{ secrets.LINODE_PASSWORD }} | ||
localDir: scripts | ||
remoteDir: scripts | ||
|
||
- name: Start the service | ||
uses: garygrossgarten/[email protected] | ||
with: | ||
command: cd scripts && pwsh ./restart.ps1 -tag ${{ steps.prepare.outputs.tag}} -branch beta | ||
host: ${{ secrets.LINODE_SERVER }} | ||
username: ${{ secrets.LINODE_USER }} | ||
password: ${{ secrets.LINODE_PASSWORD }} | ||
defaults: | ||
run: | ||
working-directory: . | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run | ||
run: | | ||
cd scripts | ||
docker-compose -f docker-compose-beta.yml up --build -d | ||
docker images prune --quiet |
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
Binary file not shown.
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,14 +1,20 @@ | ||
<CascadingAuthenticationState> | ||
<Router AppAssembly="@typeof(App).Assembly"> | ||
<Found Context="routeData"> | ||
<AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" /> | ||
<FocusOnNavigate RouteData="@routeData" Selector="h1" /> | ||
</Found> | ||
<NotFound> | ||
<PageTitle>Not found</PageTitle> | ||
<LayoutView Layout="@typeof(MainLayout)"> | ||
<p role="alert">Sorry, there's nothing at this address.</p> | ||
</LayoutView> | ||
</NotFound> | ||
</Router> | ||
</CascadingAuthenticationState> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<base href="/" /> | ||
<link rel="stylesheet" href="css/bootstrap/bootstrap.min.css" /> | ||
<link rel="stylesheet" href="css/site.css" /> | ||
<link rel="stylesheet" href="SanpetePantry.styles.css" /> | ||
<link rel="icon" type="image/png" href="favicon.png" /> | ||
<HeadOutlet /> | ||
</head> | ||
|
||
<body> | ||
<Routes /> | ||
<script src="_framework/blazor.web.js"></script> | ||
</body> | ||
|
||
</html> |
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,110 @@ | ||
@page "/2023GalaSponsors" | ||
@rendermode InteractiveServer | ||
|
||
<h1>2023 Gala Sponsors</h1> | ||
|
||
<div id="gala-ctn"> | ||
</div> | ||
|
||
<script> | ||
async function loadSponsors() { | ||
const galaContainer = document.querySelector("#gala-ctn"); | ||
try { | ||
const response = await fetch("/sponsorships.json"); | ||
const allSponsors = await response.json(); | ||
const galaSponsors = allSponsors["2023 Gala"]; | ||
galaSponsors.forEach(sponsor => { | ||
console.log(sponsor); | ||
const sponsorDiv = document.createElement('div'); | ||
sponsorDiv.className = "sponsor-div"; | ||
const titleDiv = document.createElement('div'); | ||
titleDiv.innerText = sponsor.name; | ||
titleDiv.className = "title-div"; | ||
const imgDiv = document.createElement('div'); | ||
imgDiv.className = "img-div"; | ||
const externalLink = document.createElement('a'); | ||
externalLink.href = sponsor["page-link"]; | ||
const img = document.createElement('img'); | ||
img.src = sponsor["image-link"]; | ||
img.className = "sponsor-img"; | ||
externalLink.appendChild(img); | ||
imgDiv.appendChild(externalLink); | ||
sponsorDiv.appendChild(imgDiv); | ||
sponsorDiv.appendChild(titleDiv); | ||
galaContainer.appendChild(sponsorDiv); | ||
}); | ||
} catch (error) { | ||
console.log("Error at 2023 Gala Sponsors", error); | ||
} | ||
} | ||
loadSponsors(); | ||
</script> | ||
|
||
<style> | ||
#gala-ctn { | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: center; | ||
gap: 1em; | ||
} | ||
.sponsor-div { | ||
border: 0.2em solid black; | ||
flex-basis: 30%; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
flex-direction: column; | ||
border-radius: 2em 2em 2em 2em; | ||
background-color: #BEA6A1; | ||
transition: 0.5s; | ||
} | ||
.sponsor-div:hover { | ||
flex-basis: 35%; | ||
} | ||
.sponsor-img { | ||
max-width: 20em; | ||
max-height: 12em; | ||
min-width: 10em; | ||
min-height: 5em; | ||
} | ||
.title-div { | ||
font-size: x-large; | ||
font-weight: 300; | ||
padding: 0.5em; | ||
color: black; | ||
} | ||
.img-div { | ||
padding: 1.5em; | ||
} | ||
h1 { | ||
margin: 1em; | ||
} | ||
</style> |
Oops, something went wrong.