Skip to content

Commit

Permalink
Hotfix/downgrade to dotnet3 (#57)
Browse files Browse the repository at this point in the history
* Downgrade runtimes

* Add missed job

* Fix

* Fix sentry release step
  • Loading branch information
framebassman authored Aug 28, 2022
1 parent 57e2d4c commit b44aa1d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Sentry Release
uses: getsentry/action-release@v1.0.0
uses: getsentry/action-release@v1.2.0
with:
finalize: false
version: ${{ env.VERSION }}
Expand All @@ -49,7 +49,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Sentry Release
uses: getsentry/action-release@v1.0.0
uses: getsentry/action-release@v1.2.0
with:
finalize: true
version: ${{ env.VERSION }}
Expand Down
16 changes: 14 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- 'Chat.Web/Client'

env:
DOTNET_VERSION: '6.0' # The .NET SDK version to use
DOTNET_VERSION: '3.1' # The .NET SDK version to use

jobs:
backend:
Expand All @@ -34,7 +34,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
node-version: [12.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -47,3 +47,15 @@ jobs:
working-directory: ./Chat.Web/Client
- run: npm test
working-directory: ./Chat.Web/Client
build-docker-contatiner:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build
uses: docker/build-push-action@v3
with:
context: .
push: false
tags: framebassman/chat:latest
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
FROM mcr.microsoft.com/dotnet/sdk:6.0.400-1-alpine3.16-amd64 AS build-env
FROM mcr.microsoft.com/dotnet/core/sdk:3.1.201-alpine3.11 AS build-env

RUN apk add --update 'nodejs=16.16.0-r0' 'npm=8.10.0-r0'
RUN apk add --update 'nodejs=12.22.6-r0' 'npm=12.22.6-r0'

COPY ./Chat.Web /app
WORKDIR /app
#RUN dotnet clean
RUN dotnet restore
RUN dotnet publish -c Release -o out

FROM mcr.microsoft.com/dotnet/aspnet:6.0.8-alpine3.16-amd64
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1.3-alpine3.11
WORKDIR /app
COPY --from=build-env /app/out .

Expand Down

0 comments on commit b44aa1d

Please sign in to comment.