Skip to content

Commit 2d0e6b8

Browse files
author
Samir Boulema
committed
Update to .NET6.0
1 parent 2f75b78 commit 2d0e6b8

File tree

105 files changed

+1438
-1843
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+1438
-1843
lines changed

.github/workflows/workflow.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Hops
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- 'feature/**'
8+
9+
env:
10+
version: '1.0.${{ github.run_number }}'
11+
12+
jobs:
13+
build:
14+
name: Build
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v2
19+
20+
- name: Set up Docker Buildx
21+
uses: docker/setup-buildx-action@v1
22+
23+
- name: Login to DockerHub
24+
uses: docker/login-action@v1
25+
with:
26+
username: ${{ secrets.DOCKERHUB_USERNAME }}
27+
password: ${{ secrets.DOCKERHUB_TOKEN }}
28+
29+
- name: Build and push Docker image
30+
uses: docker/build-push-action@v2
31+
with:
32+
push: true
33+
tags: sboulema/hops:latest
34+
35+
- name: Deploy
36+
uses: appleboy/ssh-action@master
37+
with:
38+
host: ${{ secrets.HOST }}
39+
username: ${{ secrets.USERNAME }}
40+
password: ${{ secrets.PASSWORD }}
41+
port: ${{ secrets.PORT }}
42+
script: /home/sboulema/deployDockerContainer Hops hops

Dockerfile

+12-18
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,20 @@
1-
# First Stage
2-
FROM microsoft/dotnet:2.2-sdk
3-
4-
RUN dotnet tool install -g Microsoft.Web.LibraryManager.Cli
5-
ENV PATH="$PATH:/root/.dotnet/tools"
6-
7-
RUN mkdir /build
8-
WORKDIR /build
1+
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
2+
WORKDIR /app
93

10-
COPY src/Hops/ .
11-
RUN libman restore
4+
# copy csproj and restore as distinct layers
5+
COPY *.sln .
6+
COPY src/Hops/*.csproj ./Hops/
127
RUN dotnet restore
138

9+
# copy everything else and build app
10+
COPY Hops/. ./Hops/
11+
WORKDIR /app/Hops
1412
RUN dotnet publish -c Release -o out
1513

16-
# Second Stage
17-
FROM microsoft/dotnet:2.2-aspnetcore-runtime
14+
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS runtime
1815

1916
WORKDIR /app
20-
COPY --from=0 /build/out .
21-
COPY --from=0 /build/wwwroot/lib lib
2217

23-
ENV ASPNETCORE_URLS http://+:5000
24-
EXPOSE 5000/tcp
25-
ENV YourlsApiKey=token
26-
ENTRYPOINT dotnet Hops.dll
18+
COPY --from=build /app/Hops/out ./
19+
20+
ENTRYPOINT ["dotnet", "Hops.dll"]

Hops.UWP/BundleArtifacts/neutral.txt

-1
This file was deleted.

Hops.UWP/Hops.UWP.jsproj

-89
This file was deleted.

Hops.UWP/Hops.UWP_TemporaryKey.pfx

-2.39 KB
Binary file not shown.
-2.82 KB
Binary file not shown.
-58.2 KB
Binary file not shown.
-42.8 KB
Binary file not shown.
-9.49 KB
Binary file not shown.
Binary file not shown.

Hops.UWP/images/StoreLogo.png

-3.69 KB
Binary file not shown.
-47.8 KB
Binary file not shown.

Hops.UWP/msapp-error.css

-17
This file was deleted.

Hops.UWP/msapp-error.html

-26
This file was deleted.

Hops.UWP/msapp-error.js

-22
This file was deleted.

Hops.UWP/package.appxmanifest

-37
This file was deleted.

Hops.sln

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 16
4-
VisualStudioVersion = 16.0.28407.52
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.4.32804.182
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{DF37743C-E893-4CD1-9488-DE92EF732F1F}"
77
EndProject
88
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{518B6A8A-BF6F-4AF5-BE39-E56ECF15C5E6}"
99
ProjectSection(SolutionItems) = preProject
10-
azure-pipelines.yml = azure-pipelines.yml
1110
Dockerfile = Dockerfile
12-
global.json = global.json
1311
README.md = README.md
12+
.github\workflows\workflow.yml = .github\workflows\workflow.yml
1413
EndProjectSection
1514
EndProject
1615
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Hops", "src\Hops\Hops.csproj", "{45249252-9887-4746-BB5A-7EBDB60122B4}"

README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,11 @@ Hops also has a few tools to make live easier for the homebrewer
2020
Running Hops is easy and fast, just start the docker image and Hops will be served on port 5000
2121

2222
# BrewDB
23-
Ingredient database is used from [BrewDB](https://github.com/sboulema/BrewDB)
23+
Ingredient database is used from [BrewDB](https://github.com/sboulema/BrewDB)
24+
25+
## Environment variables
26+
27+
| Variable | Description |
28+
|----------------|------------------------------------------|
29+
| firebaseApiKey | API key used to store inventory and recipes |
30+
| YourlsApiKey | API key used to create short share urls for recipes |

azure-pipelines.yml

-42
This file was deleted.

global.json

-6
This file was deleted.

0 commit comments

Comments
 (0)