'tekton & buildpacks: how to use a versioning tag image strategy

My question is related about how to use a semantic versioning strategy using tektoncd when image is built and pushed.

I don't quite figure out how to configure buildpacks tasks in order to push my image using a tag. I mean, APP_IMAGE is set to:

params:
    - name: APP_IMAGE
      value: registry.gitlab.com/cicdgitops/rest-service/service

By from documentation I don't quite figure out how to create a pipeline in order to use a tag image aligned to some semantic versioning strategy.

Any ideas?



Sources

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

Source: Stack Overflow

Solution Source