when: event: tag steps: build: image: docker:cli commands: - docker build -f docker/Dockerfile -t incr:${CI_COMMIT_TAG} . - docker tag incr:${CI_COMMIT_TAG} incr:latest volumes: - /var/run/docker.sock:/var/run/docker.sock