diff --git a/.github/workflows/dotnetCI_release.yml b/.github/workflows/dotnetCI_release.yml index 2827651..35de9da 100644 --- a/.github/workflows/dotnetCI_release.yml +++ b/.github/workflows/dotnetCI_release.yml @@ -57,3 +57,19 @@ jobs: - name: Test with the dotnet CLI working-directory: AnalysisData run: dotnet test ./AnalysisData.sln + + deploy: + runs-on: ubuntu-22.04 + permissions: + contents: write + steps: + - name: Log in to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_PASS }} + + - name: Build the Docker image + run: | + docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/dotnetdev:${{ version.steps.tag_version.outputs.new_tag }} . + docker push ${{ secrets.DOCKERHUB_USERNAME }}/dotnetdev:${{ version.steps.tag_version.outputs.new_tag }}