From 99c71cde3d803317346b63a591d5039973336344 Mon Sep 17 00:00:00 2001 From: Nikolay Pianikov Date: Thu, 6 Jun 2024 12:15:00 +0300 Subject: [PATCH] CI/CD --- .github/workflows/main.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..304a4d1 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,25 @@ +name: Pure.DI check + +on: [ push, pull_request ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Setup dotnet + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '8.0.x' + + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build and push + run: dotnet run --project ./build