Skip to content

Commit

Permalink
Merge pull request #27 from mkajic20/develop
Browse files Browse the repository at this point in the history
First deployment of backend
  • Loading branch information
irosic20 authored Jan 28, 2024
2 parents 4a161e5 + a206321 commit fd8b0b1
Show file tree
Hide file tree
Showing 103 changed files with 11,929 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
**/.classpath
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/azds.yaml
**/bin
**/charts
**/docker-compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
LICENSE
README.md
52 changes: 52 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: CI/CD Pipeline

on:
push:
branches:
- 'develop'
- 'main'
pull_request:
branches:
- 'develop'
- 'main'


jobs:
build:
runs-on: windows-latest
steps:

- name: Checkout
uses: actions/[email protected]

- name: Set up NuGet
uses: NuGet/[email protected]

- name: Setup MSBuild
uses: microsoft/[email protected]

- name: Navigate to Workspace
run: cd $GITHUB_WORKSPACE

- name: List Directories
run: dir

- name: Restore NuGet packages for backend
run: nuget restore SmartCharger.sln

- name: Restore NuGet packages for unit tests
run: nuget restore SmartCharger.Test/SmartCharger.Test.csproj

- name: Build Backend
run: msbuild SmartCharger.sln /p:platform="Any CPU" /p:configuration=Release

- name: Run Unit Tests
run: dotnet test SmartCharger.Test/SmartCharger.Test.csproj --configuration Release

- name: Login to Docker Hub
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}

- name: Build docker image
run: docker build -f SmartCharger/Dockerfile -t ${{secrets.REPO_NAME}} .


Loading

0 comments on commit fd8b0b1

Please sign in to comment.