'GitLab apply image only to one job

I have pipeline:

stages:          # List of stages for jobs, and their order of execution
  - test
  - deploy

deploy-test:
  stage: test
  image: python
  only:
    - /^B[Ii]-.*$/
  script:
     - git --version
     - . PublishPBIReports.sh

deploy-prod:      # This job runs in the deploy stage.
  stage: deploy  # It only runs when *both* jobs in the test stage complete successfully.
  image: python
  only:
    - master
  script:
     - git --version
     - pbifiles=(git diff --name-only HEAD HEAD~1 -- '***.pbix')
     - echo $pbifiles
     - echo $CI_COMMIT_BRANCH

when i push to branches i see in runner logs that runner every time use docker:latest image for branches, but in my master branch he work correct (every time use python image and all work right).



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source