when: branch: [stage, main] event: push steps: - name: build-and-push image: plugins/docker settings: dockerfile: src/Dockerfile context: src/ repo: registry:5000/annotations tags: - "${CI_COMMIT_BRANCH}" - "${CI_COMMIT_SHA:0:8}" insecure: true