refactoring : ci-context as amd