Github Actions does not update the .jar file

I am developing an application in a combination of Github Actions, DockerHub and Azure. After making a commit on github the build executes correctly but on the server the changes are not made. On Docker Hub the push is visible but the pull is not. When I do it in intellij and click in maven clean and package then after commit the changes are made. I tried to reproduce this process in a .yml file but unfortunately it doesn’t work. Below is the code:

name: Build and deploy container app to Azure Web App - adoptit


jobs:
  build:
    runs-on: 'ubuntu-latest'

steps:
- name: Check out code
  uses: actions/checkout@v2
  
- name: Set up JDK
  uses: actions/setup-java@v1
  with:
    java-version: 17
    
- name: Clean package
  run: mvn -B clean package -f ./Back-end/pom.xml -DskipTests=true

- name: Set up Docker Buildx
  uses: docker/setup-buildx-action@v1

- name: Log in to registry
  uses: docker/login-action@v1
  with:
    registry: https://index.docker.io/v1/
    username: ${{secrets.DOCKER_LOGIN}}
    password: ${{secrets.DOCKER_PASSWORD}}

- name: Build and push container image to registry
  uses: docker/build-push-action@v2
  with:
    push: true
    tags: index.docker.io/monzaj19/${{env.DOCKER_IMAGE_NAME}}:${{ github.sha }}
    file: ./Back-end/Dockerfile

- name: Deploy to Azure Web App
  id: deploy-to-webapp
  uses: azure/webapps-deploy@v2
  with:
    app-name: 'adoptit'
    slot-name: 'production'
    publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE}}
    images: 'index.docker.io/monzaj19/${{env.DOCKER_IMAGE_NAME}}:${{ github.sha }}'