Skip to content

Commit

Permalink
fix(CI): image build and push to docker registry
Browse files Browse the repository at this point in the history
  • Loading branch information
aliyaghini authored Aug 13, 2024
1 parent 2585a9e commit cb2748f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/dotnetCI_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit cb2748f

Please sign in to comment.