Registry-image tag image

I’m trying to tag docker image built with vito/oci-build-task. I’d like to tag the image. Here’s what it looks like now

jobs:
  - name: build-and-push
    plan:
      - get: git-src
        trigger: true
      - get: version
        params: {bump: minor}
      - task: build
        config:
          image_resource:
            source:
              repository: vito/oci-build-task
            type: registry-image
          inputs:
            - name: git-src
              path: "."
            - name: version
              # path: "."
          outputs:
            - name: image
          platform: linux
          run:
            path: sh
            args:
              - -c
              - |
                echo "starting build"
                pwd
                ls -al
                # version from semver version resource stored in version/version file
                cat version/version > ./tag
                build
        privileged: true
      - put: image-to-be-built-and-pushed
        params:
          image: image/image.tar

resources:
  - name: git-src
    source:
      uri: "https://github.com/devgitusr/concourse-ci-java.git"
      username: devgitusr
      password: password
    type: git

  - name: image-to-be-built-and-pushed
    source:
      repository: devdockerusr/vertx-java
      username: devdockerusr
      password: password
    type: registry-image

  - name: version
    type: semver
    source:
      driver: git
      uri: https://github.com/devgitusr/concourse-ci-java.git
      branch: version
      file: version
      username: devgitusr
      password: password