File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 11# This workflow will build a .NET project
22# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
33
4- name : .NET
4+ name : Build and push to DockerHub
55
66on :
77 push :
2525 - name : Test
2626 run : dotnet test --no-build --verbosity normal
2727
28+ - name : Determine next version
29+ id : next-version
30+ uses : flatherskevin/semver-action@v1
31+ with :
32+ type : patch
33+
2834 - name : Login to Docker Hub
2935 uses : docker/login-action@v2
3036 with :
3642 with :
3743 context : ./KubernetesTestApp/.
3844 push : true
39- tags : ${{ secrets.DOCKERHUB_USERNAME }}/kubernetestestapp:latest
45+ tags : |
46+ ${{ secrets.DOCKERHUB_USERNAME }}/kubernetestestapp:latest
47+ ${{ secrets.DOCKERHUB_USERNAME }}/kubernetestestapp:${{ steps.next-version.outputs.next }}
You can’t perform that action at this time.
0 commit comments