diff --git a/.github/workflows/dotnetCI_release.yml b/.github/workflows/dotnetCI_release.yml index 35de9da..61c8298 100644 --- a/.github/workflows/dotnetCI_release.yml +++ b/.github/workflows/dotnetCI_release.yml @@ -31,6 +31,18 @@ jobs: - name: Print new tag run: echo ${{ steps.tag_version.outputs.new_tag }} + + - 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:${{ steps.tag_version.outputs.new_tag }} . + docker push ${{ secrets.DOCKERHUB_USERNAME }}/dotnetdev:${{ steps.tag_version.outputs.new_tag }} + build: runs-on: ubuntu-latest @@ -58,18 +70,18 @@ jobs: 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 }} + # 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 }} + # - 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 }}